On Sat, 17 Apr 2010 20:32:27 +0200, Arian Kuschki <arian.kuschki@googlemail.com> wrote: > So one could query with sysconf and break things up into multiple > commands as needed. > > Doesn't xargs do exactly this? Almost. The arguments being passed to the "notmuch tag" command in this case look like: notmuch tag -inbox thread:foo or thread:bar or ... To break that up, we'd have to be careful to neither leave a trailing 'or' at the end of a command line nor to have an 'or' at the beginning of a command line. -Carl