aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-search-private.c
diff options
context:
space:
mode:
author3 <NotZed@Ximian.com>2001-10-04 06:17:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-04 06:17:10 +0800
commit1ecc7068f5ccec30e1e99fc7193c26993496797a (patch)
treed4d1ed00db8f2be8dc4a28d2a79706dddacc9813 /camel/camel-search-private.c
parent628b33f28c29f843232471e79347c10af5a9c413 (diff)
downloadgsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar.gz
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar.bz2
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar.lz
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar.xz
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.tar.zst
gsoc2013-evolution-1ecc7068f5ccec30e1e99fc7193c26993496797a.zip
Added MATCH_NEWLINE flag, -> REG_NEWLINE.
2001-10-03 <NotZed@Ximian.com> * camel-search-private.c (camel_search_build_match_regex): Added MATCH_NEWLINE flag, -> REG_NEWLINE. * camel-lock-helper.c: Include <string.h> to kill some warnings. * camel-filter-search.c (get_full_header): Put \n's between each line we generate. (header_full_regex): Dont drop the first argument to the command -> empty matches! (header_full_regex): Set match_newline for building regex. (body_regex): And here too. These all fix #9877. svn path=/trunk/; revision=13392
Diffstat (limited to 'camel/camel-search-private.c')
-rw-r--r--camel/camel-search-private.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-search-private.c b/camel/camel-search-private.c
index 759ca7cf3e..e392d79417 100644
--- a/camel/camel-search-private.c
+++ b/camel/camel-search-private.c
@@ -99,6 +99,8 @@ camel_search_build_match_regex (regex_t *pattern, camel_search_flags_t type, int
flags = REG_EXTENDED|REG_NOSUB;
if (type & CAMEL_SEARCH_MATCH_ICASE)
flags |= REG_ICASE;
+ if (type & CAMEL_SEARCH_MATCH_NEWLINE)
+ flags |= REG_NEWLINE;
err = regcomp (pattern, match->str, flags);
if (err != 0) {
/* regerror gets called twice to get the full error string