diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-14 09:44:18 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-14 09:44:18 +0800 |
commit | 0676d2890e8def5d8876da6784df4e673b0703a1 (patch) | |
tree | e8eefa6b292df016f38d82f2a6f96ad1af966cdf /camel/camel-filter-search.h | |
parent | c109102df34ceb19c72fbc8c410c9ec158c6b3a5 (diff) | |
download | gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar.gz gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar.bz2 gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar.lz gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar.xz gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.tar.zst gsoc2013-evolution-0676d2890e8def5d8876da6784df4e673b0703a1.zip |
Don't reuse the exception if it has already been set.
2001-09-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_folder): Don't
reuse the exception if it has already been set.
(camel_filter_driver_filter_message): Same here. Also use the new
return value from camel_filter_search_match().
* camel-filter-search.c (camel_filter_search_match): Return an
integer (matched, no-match, or error).
svn path=/trunk/; revision=12819
Diffstat (limited to 'camel/camel-filter-search.h')
-rw-r--r-- | camel/camel-filter-search.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/camel/camel-filter-search.h b/camel/camel-filter-search.h index 1482f70539..eb1ad2e47d 100644 --- a/camel/camel-filter-search.h +++ b/camel/camel-filter-search.h @@ -34,8 +34,14 @@ extern "C" { #include <camel/camel-mime-message.h> #include <camel/camel-folder-summary.h> -gboolean camel_filter_search_match(CamelMimeMessage *message, CamelMessageInfo *info, - const char *source, const char *expression, CamelException *ex); +enum { + CAMEL_SEARCH_ERROR = -1, + CAMEL_SEARCH_NOMATCH = 0, + CAMEL_SEARCH_MATCHED = 1, +}; + +int camel_filter_search_match (CamelMimeMessage *message, CamelMessageInfo *info, + const char *source, const char *expression, CamelException *ex); #ifdef __cplusplus } |