Re: Kill Thread

Subject: Re: Kill Thread

Date: Sun, 20 Jun 2010 17:31:40 +0200

To: Arvid Picciani, notmuch@notmuchmail.org

Cc:

From: Michal Sojka


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

Thread: