File spamass-milter-0.3.2-rcvd.patch of Package spamass-milter

The code in spamass-milter.cpp that tries to create a
Sendmail-compatible header was broken and generated a header
that was incorrectly parsed by SpamAssassin.

This is mostly fixed now apart from the space that needs
adding prior to the "(" between macro_j and macro_v.

diff -up spamass-milter-0.3.2/spamass-milter.cpp.rcvd spamass-milter-0.3.2/spamass-milter.cpp
--- spamass-milter-0.3.2/spamass-milter.cpp.rcvd	2011-02-15 10:46:55.000000000 +0000
+++ spamass-milter-0.3.2/spamass-milter.cpp	2011-02-15 10:50:25.538111680 +0000
@@ -966,7 +966,7 @@ mlfi_envrcpt(SMFICTX* ctx, char** envrcp
 			"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"+
 			"(envelope-from "+assassin->from()+")\r\n");
openSUSE Build Service is sponsored by