Package: spamass-milter
Version: 0.3.0-2
I think the verion 0.3.0-2 in combination with SpamAssassin >3.0 doesn't
work correct, because all mail are tagged with ALL_TRUSTED. I download
the cvsversion (2006-02-16) and make a new package. With this new
version this error is gone. I think, the relavant change in
spamass-milter.cpp is:
@@ -898,13 +916,44 @@
(envelope-from $g)$.
*/
- const char *macro_b, *macro_s, *macro_j, *macro__;
+ const char *macro_b, *macro_i, *macro_j, *macro_r,
+ *macro_s, *macro_v, *macro_Z, *macro__;
+ char date[32];
- /* Failure to fetch {b} is not fatal. Without this date
SA can't do
- future/past validation on the Date: header, but
sendmail doesn't
- default to allow milters to see it.
- */
+ /* RFC 822 date. */
macro_b = smfi_getsymval(ctx, "b");
+ if (!macro_b)
+ {
+ time_t tval;
+ time(&tval);
+ strftime(date, sizeof(date), "%a, %d %b %Y
%H:%M:%S %z", localtime(&tval));
+ macro_b = date;
+ warnmacro("b", "ENVRCPT");
+ }
+
+ /* queue ID */
+ macro_i = smfi_getsymval(ctx, "i");
+ if (!macro_i)
+ {
+ macro_i = "unknown";
+ warnmacro("i", "ENVRCPT");
+ }
+
+ /* FQDN of this site */
+ macro_j = smfi_getsymval(ctx, "j");
+ if (!macro_j)
+ {
+ macro_j = "localhost";
+ warnmacro("j", "ENVRCPT");
+ }
+
+ /* Protocol used to receive the message */
+ macro_r = smfi_getsymval(ctx, "r");
+ if (!macro_r)
+ {
+ macro_r = "SMTP";
+ warnmacro("r", "ENVRCPT");
+ }
The package is available on:
http://apt-get.linuxhacker.at/ubuntu/dists/breezy/universe/pool/spamass-milter_0.3.0-1build1mm1_amd64.changes
This version in combination with Spamassassin 3.0.4-2 seems to be
working correct.
Best regards
Herbert Straub
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]