-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 26 Jul 2003, Rick Macdougall wrote:

> Hi,
>
> Outlook can not forward as attachment correctly.  Header lines, received
> lines etc, all gone.
>

well, back to your original question then.... sa-learn is having trouble
eating non valid rfc822 messages. You could use formail to create a
message out of what isn't, and then use bayes_ignore_header to ignore
the headers added by formail. Though the subject and various other
attributes will not be included in the check this should tip the scales
far enough for auto learning to kick in at times.

from perldoc Mail::SpamAssassin::Conf:

               bayes_ignore_header X-Upstream-Spamfilter
               bayes_ignore_header X-Upstream-SomethingElse

to implement body only filtering you might use perl and the
Mail::Message module to get only a specific bodypart of the message, and
print that to stdout. in procmail pipe it to procmail -f -r and then to
sa-learn, which will now treat it validly.

I think the greatest drawback is missing the message ID, which is used
for unlearning on correction. perhaps a webform is another possible
solution - simply cutting and pasting.

- -- 
Yuval Kogman  ( [EMAIL PROTECTED] | [EMAIL PROTECTED] )
kung foo master: /me throws bonsai kittens: neeyah!!!!!!!!!!!!!!!!!
et perl hacker. [EMAIL PROTECTED] http://nothingmuch.woobling.org/ gpg:0xEBD27418
http://wecanstopspam.org/                    http://www.habeas.com/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iEYEARECAAYFAj8jL6UACgkQVCwRwOvSdBiQtgCfUqvnX0znpWO8JjKipoQphEO6
6kAAoICptuzN8Jr1AeEBzdVSoVr3aPiP
=tLgq
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to