From d822b0671bf8bd1fbae4cc63c08cb1e66f95c18e Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Wed, 10 Feb 2010 03:03:23 +0000 Subject: spamass-milter generates "Received" header emulating MTA before passing e-mail to the spamassassin. i However, generated header is wrong and can cause problems when parsing such message. http://savannah.nongnu.org/bugs/index.php?17178 http://cvs.savannah.gnu.org/viewvc/spamass-milt/spamass-milter.cpp?root=spamass-milt&r1=1.90&r2=1.91 PR: ports/1435600 Submitted by: Marko Njezic --- mail/spamass-milter/files/patch-spamass-milter.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mail/spamass-milter/files/patch-spamass-milter.cpp (limited to 'mail/spamass-milter/files/patch-spamass-milter.cpp') diff --git a/mail/spamass-milter/files/patch-spamass-milter.cpp b/mail/spamass-milter/files/patch-spamass-milter.cpp new file mode 100644 index 000000000000..83ba09f362f9 --- /dev/null +++ b/mail/spamass-milter/files/patch-spamass-milter.cpp @@ -0,0 +1,14 @@ +--- spamass-milter.cpp 2006-03-23 22:41:36.000000000 +0100 ++++ spamass-milter.cpp 2010-02-04 14:46:31.000000000 +0100 +@@ -1002,9 +1002,9 @@ + + assassin->output((string) + "Received: from "+macro_s+" ("+macro__+")\r\n\t"+ +- "by "+macro_j+"("+macro_v+"/"+macro_Z+") with "+macro_r+" id "+macro_i+"\r\n\t"+ ++ "by "+macro_j+" ("+macro_v+"/"+macro_Z+") with "+macro_r+" id "+macro_i+";\r\n\t"+ + macro_b+"\r\n\t"+ +- "(envelope-from "+assassin->from()+"\r\n"); ++ "(envelope-from "+assassin->from()+")\r\n"); + + } else + assassin->output((string)"X-Envelope-To: "+envrcpt[0]+"\r\n"); -- cgit v1.2.3