Aloha Beau,
there is another thing to fix:
if ($s->{checked_email} =3D~ /X-Spam-Flag: YES/) {
$is_spam=3D"SPAM";
$s->{checked_email} =3D~ s/(?<!\r)\n/\r\n/g;
$s->{xmail_header} =3D~ s/(?<!\r)\n/\r\n/g;
}
spamd converts the header line endings into \n, which is not RFC =
conform.
Don fixes this in his original script, but only when the mail is SPAM.
HAM mails are still missing an additional /r.
So this makes things complete:
$s->{checked_email} =3D~ s/(?<!\r)\n/\r\n/g;
$s->{xmail_header} =3D~ s/(?<!\r)\n/\r\n/g;
if ($s->{checked_email} =3D~ /X-Spam-Flag: YES/) {
$is_spam=3D"SPAM";
}
Thanks,
Harald
> -----Urspr=FCngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von Beau E. Cox
> Gesendet: Donnerstag, 27. Mai 2004 17:07
> An: [EMAIL PROTECTED]
> Betreff: [xmail] Re: AW: Re: AW: [ANNOUNCE] bsa_filter.pl
>=20
>=20
> On Thursday 27 May 2004 04:58 am, Harald Schneider wrote:
> > Sorry -- take this one:
> > http://xmail.marketmix.com/downloads/sa_filter2.zip
> >
> > It is also possible to restart spamd for updating your *.cf files, =
=3D
> > without
> > loosing any mail or spam going trough unscanned!
> >
> > Err -5 will still be listed in your logs, but these mails will be =
=3D
> > processed
> > again.
> >
> > Please add parameter -QT 600 to your XMAIL_CMD_LINE=20
> variable when using =3D
> > this
> > script.=3D20
> >
> > Beau,
> > this is the latest one. Made the delay some more simple ;)
> >
> > --Harald
>=20
> Harald -
>=20
> Just put 0.2-beta out on http://xmail.beaucox.com/
>=20
> My delay is really simple. I could not use the
> test for X-Spam-Flag (it is not put on the clean messages
> scanned by my spamassassin - 2.63). Instead, I used
> X-Spam-Status - that is always produced by spamd.
>=20
> I have it up and working in my production; seems ok.
>=20
> Dale -
>=20
> OK, go download the new one from my site and try it.
>=20
> Aloha =3D> Beau;
>=20
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>=20
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]