From 22876b6aa8f2e00c61e70352336ad00250dcec33 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 28 Dec 2000 19:28:53 +0000 Subject: 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 --- filter/ChangeLog | 5 +++++ filter/filter-message-search.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'filter') 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 + + * filter-message-search.c (handle_multipart, body_contains, + body_regex): Use CamelContentType rather than GMimeContentField. + 2000-12-24 Not Zed * 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; -- cgit v1.2.3