On Thu, 28 Oct 2010 12:24:45 -0700, Carl Worth <cworth@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