summaryrefslogtreecommitdiff
path: root/mail/mail-notification/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-notification/patches/patch-aj')
-rw-r--r--mail/mail-notification/patches/patch-aj30
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/mail-notification/patches/patch-aj b/mail/mail-notification/patches/patch-aj
new file mode 100644
index 00000000000..6b076d7f5a0
--- /dev/null
+++ b/mail/mail-notification/patches/patch-aj
@@ -0,0 +1,30 @@
+$NetBSD: patch-aj,v 1.1 2009/11/10 20:33:38 markd Exp $
+
+gmime2.4 fix
+
+--- src/mn-message-mime.c.orig 2008-05-23 03:45:35.000000000 +1200
++++ src/mn-message-mime.c
+@@ -33,12 +33,12 @@ is_spam (GMimeMessage *mime_message)
+ g_return_val_if_fail(GMIME_IS_MESSAGE(mime_message), FALSE);
+
+ /* SpamAssassin */
+- spam = g_mime_message_get_header(mime_message, "X-Spam-Status");
++ spam = g_mime_object_get_header(mime_message, "X-Spam-Status");
+ if (spam && mn_ascii_str_case_has_prefix(spam, "yes"))
+ return TRUE;
+
+ /* bogofilter */
+- spam = g_mime_message_get_header(mime_message, "X-Bogosity");
++ spam = g_mime_object_get_header(mime_message, "X-Bogosity");
+ if (spam && mn_ascii_str_case_has_prefix(spam, "yes"))
+ return TRUE;
+
+@@ -89,7 +89,7 @@ mn_message_new_from_mime_message_full (G
+ {
+ const char *status;
+
+- status = g_mime_message_get_header(mime_message, "Status");
++ status = g_mime_object_get_header(mime_message, "Status");
+ if (status && strchr(status, 'R'))
+ return NULL; /* the message was read */
+ else if (status && strchr(status, 'O'))