From 1ecc7068f5ccec30e1e99fc7193c26993496797a Mon Sep 17 00:00:00 2001 From: 3 Date: Wed, 3 Oct 2001 22:17:10 +0000 Subject: Added MATCH_NEWLINE flag, -> REG_NEWLINE. 2001-10-03 * camel-search-private.c (camel_search_build_match_regex): Added MATCH_NEWLINE flag, -> REG_NEWLINE. * camel-lock-helper.c: Include 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 --- camel/camel-search-private.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/camel-search-private.c') 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 -- cgit v1.2.3