On 18 Jun 2018, at 08:47, RW <rwmailli...@googlemail.com> wrote: > On Mon, 18 Jun 2018 06:13:06 -0600 > @lbutlr wrote: > >> I have a script that runs when a mail is moved out of the Junk folder >> to pass the mail through sa-learn --ham, > > > Whether this is the Dovecot plugin or something local it's a poor way > of training Bayes. You're training on SA errors not Bayes errors. Most > imperfect Bayes results don't translate into misclassifications.
I’m not sure what you’re trying too say here/ Certainly SA does misclassify mail as spam at times, usually bulk mail the the user wants (for example, it marks Comixology mails as spam for me). Training the messages as ham is useful. The script that runs is running out of dovecot, so procmail is not an option. What I have currently, but it doesn’t work well and I’m considering abandoning it entirely: #!/bin/sh exec /usr/local/bin/spamassassin -d ${1} && /usr/local/bin/sa-learn -u ${1} --ham