Re: Remove SA tagging when learning as ham

2018-06-20 Thread RW
On Wed, 20 Jun 2018 09:20:56 +0200 Matus UHLAR - fantomas 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, > > >> >You can work around the plu

Re: Remove SA tagging when learning as ham

2018-06-20 Thread Matus UHLAR - fantomas
>> > 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, >You can work around the plugin's deficiencies by using autotraining >or doing some additional training, but then the

Re: Remove SA tagging when learning as ham

2018-06-19 Thread RW
On Tue, 19 Jun 2018 10:41:51 +0200 Matus UHLAR - fantomas 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, > > >You can work around the plugin's defic

Re: Remove SA tagging when learning as ham

2018-06-19 Thread Matus UHLAR - fantomas
> 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, I think this is what the dovecot's Antispam plugin does: https://wiki2.dovecot.org/Plugins/Antispam and maybe ImapSieve: http

Re: Remove SA tagging when learning as ham

2018-06-18 Thread RW
On Mon, 18 Jun 2018 10:13:04 -0600 @lbutlr wrote: > On 18 Jun 2018, at 08:47, RW 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, > > > > > > Whethe

Re: Remove SA tagging when learning as ham

2018-06-18 Thread @lbutlr
On 18 Jun 2018, at 10:13, @lbutlr wrote: > #!/bin/sh > exec /usr/local/bin/spamassassin -d ${1} && /usr/local/bin/sa-learn -u ${1} > --ham Sorry, tyop from memory. #!/bin/sh exec /usr/local/bin/spamassassin -d && /usr/local/bin/sa-learn -u ${1} --ham I think what I am going to do is enable re

Re: Remove SA tagging when learning as ham

2018-06-18 Thread @lbutlr
On 18 Jun 2018, at 08:47, RW 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 tr

Re: Remove SA tagging when learning as ham

2018-06-18 Thread RW
On Mon, 18 Jun 2018 15:44:15 +0100 Martin Gregorie wrote: > On Mon, 2018-06-18 at 14:26 +0100, RW wrote: > > On Mon, 18 Jun 2018 14:11:16 +0100 > > Martin Gregorie wrote: > > > > > > > I normally use an awk script for this sort of job because they are > > > short, easy to write and run fast

Re: Remove SA tagging when learning as ham

2018-06-18 Thread RW
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 e

Re: Remove SA tagging when learning as ham

2018-06-18 Thread Martin Gregorie
On Mon, 2018-06-18 at 14:26 +0100, RW wrote: > On Mon, 18 Jun 2018 14:11:16 +0100 > Martin Gregorie wrote: > > > > I normally use an awk script for this sort of job because they are > > short, easy to write and run fast. > > There's no point in the OP doing this, since sa-learn ignores these

Re: Remove SA tagging when learning as ham

2018-06-18 Thread RW
On Mon, 18 Jun 2018 14:11:16 +0100 Martin Gregorie wrote: > I normally use an awk script for this sort of job because they are > short, easy to write and run fast. There's no point in the OP doing this, since sa-learn ignores these headers.

Re: Remove SA tagging when learning as ham

2018-06-18 Thread Martin Gregorie
On Mon, 2018-06-18 at 06:13 -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, but it doesn’t removed the > subject tagging (Spam: 05.5) nor does it remove the X-Spam-Flag > header. > > What would I need to do in

Re: Remove SA tagging when learning as ham

2018-06-18 Thread RW
On Mon, 18 Jun 2018 14:42:39 +0200 Tom Hendrikx wrote: want to see the result of Junk filtering in you MUA, > don't tag the subject, and do everything based on the SA headers. And X-Spam-* headers are ignored.

Re: Remove SA tagging when learning as ham

2018-06-18 Thread Tom Hendrikx
Hi, "Moving out of the Junk folder" definitely sounds like IMAP. In the IMAP standard, messages can't be changed after delivery. To alter the message (change subject, remove headers), you'll need to delete the old message, and create a new, altered message. This is bad for caching, and could mess

Re: Remove SA tagging when learning as ham

2018-06-18 Thread Kevin A. McGrail
I'd look at https://serverfault.com/questions/817928/procmailrc-change-email-subject -- Kevin A. McGrail VP Fundraising, Apache Software Foundation Chair Emeritus Apache SpamAssassin Project https://www.linkedin.com/in/kmcgrail - 703.798.0171 On Mon, Jun 18, 2018 at 8:13 AM, @lbutlr wrote: > I

Remove SA tagging when learning as ham

2018-06-18 Thread @lbutlr
I have a script that runs when a mail is moved out of the Junk folder to pass the mail through sa-learn --ham, but it doesn’t removed the subject tagging (Spam: 05.5) nor does it remove the X-Spam-Flag header. What would I need to do in the script to remove the SA tags on messages that are proc