Re: whitelisting

2017-03-06 Thread Jameson Graef Rollins
On Mon, Mar 06 2017, Steven Allen wrote: > Instead of iterating over all messages in spam, why not just iterate > over *new* messages (`tag:new`) in your pre hook? That is (pseudo code): > > for message in `notmuch search tag:new and tag:spam`: > for author in message.headers["From"]:

Re: whitelisting

2017-03-06 Thread Jameson Graef Rollins
On Mon, Mar 06 2017, Jameson Graef Rollins wrote: > I could try to write a python script to iterate over all tag:spam, > extract addresses from those messages, and match against the > whitelist, but I doubt that will be any faster. So a custom python script that iterates over all tag:new messages

Re: whitelisting

2017-03-06 Thread Steven Allen
Jameson, > This works ok, but takes more than 20s to execute, which will slow down > my inbox processing quite a bit. I could try to write a python script > to iterate over all tag:spam, extract addresses from those messages, and > match against the whitelist, but I doubt that will be any faster

whitelisting

2017-03-06 Thread Jameson Graef Rollins
Hi, folks. In my on-going war with spam [0], the new battle ground is false positives: I'm losing too much ham to mis-classification. For my first line of attack, I would like automatically whitelist every address to which I have ever sent mail. I realize this is flawed (spammers frequently pose