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

[PATCH 2/3] NEWS: external subcommand handling

2017-03-06 Thread Jani Nikula
--- NEWS | 9 + 1 file changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 652affa960ed..079308555935 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,15 @@ Regular expression searches supported for `from:` and `subject:`. This requires recent Xapian (1.4+) See notmuch-search-terms(7) for

[PATCH 3/3] NEWS: notmuch-emacs-mua and desktop integration

2017-03-06 Thread Jani Nikula
--- NEWS | 16 1 file changed, 16 insertions(+) diff --git a/NEWS b/NEWS index 079308555935..aa43b5ca4638 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,22 @@ Emacs Interface Save and resume messages in `notmuch-message-mode` (composition). +`notmuch emacs-mua` command installe

[PATCH 1/3] man: document external subcommand handling in notmuch(1)

2017-03-06 Thread Jani Nikula
The documentation for this was overlooked when adding the subcommand handling. This seems like the proper place for it. --- doc/man1/notmuch.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/man1/notmuch.rst b/doc/man1/notmuch.rst index 7429f517626d..fbd7f3816757 100644 --- a/do

[PATCH] bindings/python: add bindings for notmuch_database_get_revision

2017-03-06 Thread Gaute Hope
Database.get_revision () returns a tuple with the current database revision and the UUID string representing the database. --- bindings/python/notmuch/database.py | 16 1 file changed, 16 insertions(+) diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/da

[PATCH] NEWS for emacs

2017-03-06 Thread Mark Walters
--- This is the NEWS updates for most of my changes. I am not quite sure whether any of my other changes warranted news items -- prod me if you think they do. Note I changed the heading to Emacs not Emacs Interface to match previous releases but obviously that can be changed back if you prefer.