diff options
author | Dan Winship <danw@src.gnome.org> | 2000-12-29 03:28:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-12-29 03:28:53 +0800 |
commit | 22876b6aa8f2e00c61e70352336ad00250dcec33 (patch) | |
tree | 60f2dbd44811a327b36f73b2618c46062b650824 | |
parent | 156996ac5eaaddea369e4ae001c06c45f5ad76f4 (diff) | |
download | gsoc2013-evolution-22876b6aa8f2e00c61e70352336ad00250dcec33.tar.gz gsoc2013-evolution-22876b6aa8f2e00c61e70352336ad00250dcec33.tar.zst gsoc2013-evolution-22876b6aa8f2e00c61e70352336ad00250dcec33.zip |
Use CamelContentType rather than GMimeContentField.
* filter-message-search.c (handle_multipart, body_contains,
body_regex): Use CamelContentType rather than GMimeContentField.
svn path=/trunk/; revision=7187
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/filter-message-search.c | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 57e19636ee..2b5c4ab9a3 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2000-12-28 Dan Winship <danw@helixcode.com> + + * filter-message-search.c (handle_multipart, body_contains, + body_regex): Use CamelContentType rather than GMimeContentField. + 2000-12-24 Not Zed <NotZed@HelixCode.com> * Merge from camel-mt-branch. diff --git a/filter/filter-message-search.c b/filter/filter-message-search.c index 59fe4e78f8..cdfe64f2ae 100644 --- a/filter/filter-message-search.c +++ b/filter/filter-message-search.c @@ -546,19 +546,19 @@ handle_multipart (CamelMultipart *multipart, const char *match, gboolean regex, nparts = camel_multipart_get_number (multipart); for (i = 0; i < nparts && !matched; i++) { - GMimeContentField *content; + CamelContentType *content; CamelMimePart *mime_part; mime_part = camel_multipart_get_part (multipart, i); content = camel_mime_part_get_content_type (mime_part); - if (gmime_content_field_is_type (content, "text", "*")) { + if (header_content_type_is (content, "text", "*")) { /* we only want to match text parts */ matched = mime_part_matches (mime_part, match, regex, ex); if (camel_exception_is_set (ex)) break; - } else if (gmime_content_field_is_type (content, "multipart", "*")) { + } else if (header_content_type_is (content, "multipart", "*")) { CamelDataWrapper *wrapper; CamelMultipart *mpart; @@ -582,14 +582,14 @@ body_contains (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMes ESExpResult *r; if (argc > 0) { - GMimeContentField *content; + CamelContentType *content; char *match; match = (*argv)->value.string; content = camel_mime_part_get_content_type (CAMEL_MIME_PART (fms->message)); - if (gmime_content_field_is_type (content, "multipart", "*")) { + if (header_content_type_is (content, "multipart", "*")) { CamelDataWrapper *wrapper; CamelMultipart *multipart; @@ -616,14 +616,14 @@ body_regex (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessag ESExpResult *r; if (argc > 0) { - GMimeContentField *content; + CamelContentType *content; char *match; match = (*argv)->value.string; content = camel_mime_part_get_content_type (CAMEL_MIME_PART (fms->message)); - if (gmime_content_field_is_type (content, "multipart", "*")) { + if (header_content_type_is (content, "multipart", "*")) { CamelDataWrapper *wrapper; CamelMultipart *multipart; |