Kill Thread

Michal Sojka sojkam1 at fel.cvut.cz
Sun Jun 20 08:31:40 PDT 2010


On Fri, 18 Jun 2010, Arvid Picciani wrote:
> Anyone got an idea how to add a kill-thread feature? I get a few dozens
> of emails a day, of which most are just responses to threads i dont care
> about anyway.

Hi, this functionality is not (yet) directly available in notmuch
however you can use a script like this:

threads_to_kill=$(notmuch search tag:inbox|grep '\([^(]*kill[^)]*\)$'|cut -d ' ' -f 1)
notmuch tag -inbox $threads_to_kill

Once you tag a message by the "kill" tag this script removes all
messages in the same thread from your inbox.

-Michal


More information about the notmuch mailing list