On Sunday 15 October 2006 16:55, Magnus Holmgren took the opportunity to say: > Indeed, when I did "spamassassin -D bayes < testmessage" the debug output > reported learning from a different "@sa_generated" message ID > than "sa-learn -D bayes --forget" said it was trying to forget (but didn't > find). AFAICT from reading the source, get_msg() in > Mail::SpamAssassin::Bayes is used in both cases. So why does it make up > different IDs?
Apparently, when sa-learn reads a message from stdin, for some reason the entire header, and possibly even the empty line separating it from the body, disappears. Or at least $msg->get_header("Date") and $msg->get_header("Received") in get_msgid() in Bayes.pm return undef or ''. When I give sa-learn a filename it works. Also, learning via the TELL spamd method works, as does spamassassin -r with filename as well as stdin. -- Magnus Holmgren [EMAIL PROTECTED] (No Cc of list mail needed, thanks)
pgpMlZK2lBfzc.pgp
Description: PGP signature