mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$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'))
|