diff options
author | pav <pav@FreeBSD.org> | 2004-10-15 21:50:21 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-10-15 21:50:21 +0800 |
commit | c4814d7ec3e7d05828403461eb8eb4b0cda5012e (patch) | |
tree | 710b500846c60494eb5995ae47b8af754bf39fdf /mail | |
parent | 47ef5cbb87487038dbee213093b305e530d2ced7 (diff) | |
download | freebsd-ports-gnome-c4814d7ec3e7d05828403461eb8eb4b0cda5012e.tar.gz freebsd-ports-gnome-c4814d7ec3e7d05828403461eb8eb4b0cda5012e.tar.zst freebsd-ports-gnome-c4814d7ec3e7d05828403461eb8eb4b0cda5012e.zip |
- Plug two problems related to spamassassin 3.0:
- #10488 Milter adding blank line with Spamassassin-3.0.0
- #10531 reject with SA 3.0.0
PR: ports/72591
Submitted by: ume
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamass-milter/Makefile | 2 | ||||
-rw-r--r-- | mail/spamass-milter/files/patch-spamass-milter.cpp | 24 |
2 files changed, 23 insertions, 3 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index fd9cc89f1954..74b79ea90f9c 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -7,7 +7,7 @@ PORTNAME= spamass-milter PORTVERSION= 0.2.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= spamass-milt diff --git a/mail/spamass-milter/files/patch-spamass-milter.cpp b/mail/spamass-milter/files/patch-spamass-milter.cpp index c3fa0049b4c1..629df05e9f17 100644 --- a/mail/spamass-milter/files/patch-spamass-milter.cpp +++ b/mail/spamass-milter/files/patch-spamass-milter.cpp @@ -1,5 +1,5 @@ --- spamass-milter.cpp.orig Thu Jun 26 16:10:44 2003 -+++ spamass-milter.cpp Thu Jun 10 11:46:12 2004 ++++ spamass-milter.cpp Wed Oct 13 00:52:23 2004 @@ -102,6 +102,10 @@ #include <csignal> #include <string> @@ -29,7 +29,27 @@ update_or_insert(assassin, ctx, assassin->spam_flag(), &SpamAssassin::set_spam_flag, "X-Spam-Flag"); update_or_insert(assassin, ctx, assassin->spam_status(), &SpamAssassin::set_spam_status, "X-Spam-Status"); -@@ -1341,7 +1349,11 @@ +@@ -365,7 +373,7 @@ + { + int score, rv; + const char *spam_status = assassin->spam_status().c_str(); +- rv = sscanf(spam_status,"%*s hits=%d", &score); ++ rv = sscanf(spam_status,"%*s score=%d", &score); + if (rv != 1) + debug(D_ALWAYS, "Could not extract score from <%s>", spam_status); + else +@@ -539,6 +547,10 @@ + } + } + ++ /* if the header line ends in \r\n, don't return the \r */ ++ if (header[field_end-1] == '\r') ++ field_end--; ++ + // Maybe remove the whitespace picked up when a header wraps - this + // might actually be a requirement + return header.substr( field_start, field_end - field_start ); +@@ -1341,7 +1353,11 @@ { // assuming we have a recipient in the form: <username@somehost.somedomain> // we return 'username' |