I have Postfix, spampd, Cyrus IMAP.
I have two user mailboxes Learn Ham and Learn Spam which are fed to sa-learn via cron and fetchmail.

I pick up the message with fetchmail, and pipe that to sa-learn, which pipes to spamc then deliver:

/usr/bin/fetchmail -a -s -n -p IMAP -u dbuttric --auth password -- folder 'INBOX.Learn Spam' -m 'bash -c "/usr/bin/tee >(/usr/bin/sa- learn --spam --single \ > /dev/null)|/usr/bin/spamc|/usr/lib/cyrus-imapd/ deliver dbuttric"' localhost.localdomain

What i'm seeing is this:
I drop a false negative the 'Learn SPAM' folder, and everything seems to go fine.

But the spam score AFTER sa-learn is LESS than before.

Isn't sa-learn --spam supposed to weight that message higher?

Does sa-learn like to pipe to spamc? Or does sa-learn take some time to commit its work to the database? Right now, I'm imagining a situation where sa-learn takes 200 cycles longer to complete its task, so the data is not in the Bayes db when spamc gets ahold of the message...

If anyone has any insight in this, it is greatly appreciated.

Thanks

David

Reply via email to