Notmuch scripters rejoice! New "notmuch search --output=(...)"

Sebastian Spaeth Sebastian at SSpaeth.de
Fri Oct 29 00:13:03 PDT 2010


On Thu, 28 Oct 2010 12:24:45 -0700, Carl Worth <cworth at cworth.org> wrote:
> 	--output=(summary|threads|messages|files|tags)

> 	for spamfile in $(notmuch search tag:spam); do
> 		rm $spamfile
> 	done

Wow, that is very useful thanks. This will creating scripts much easier
indeed.

As for count, I would leave that in, it's seems much nicer than a |wc -l

Thanks! Keep the good stuff coming.
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101029/b84a6926/attachment.pgp>


More information about the notmuch mailing list