From: Jani Nikula Date: Tue, 25 Dec 2012 19:42:40 +0000 (-0400) Subject: cli: add support for batch tagging operations to "notmuch tag" X-Git-Tag: 0.15_rc1~20 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/3f9cc3d082b812d2c96a2326786501056cd4caca?hp=3f9cc3d082b812d2c96a2326786501056cd4caca cli: add support for batch tagging operations to "notmuch tag" Add support for batch tagging operations through stdin to "notmuch tag". This can be enabled with the new --batch command line option to "notmuch tag". The input must consist of lines of the format: +|- [...] [--] [...] Each line is interpreted similarly to "notmuch tag" command line arguments. The delimiter is one or more spaces ' '. Any characters in MAY be hex encoded with %NN where NN is the hexadecimal value of the character. Any ' ' and '%' characters in and MUST be hex encoded (using %20 and %25, respectively). For future-proofing, any '"' characters in SHOULD be hex-encoded. Any characters that are not part of or MUST NOT be hex encoded. is passed verbatim to Xapian Leading and trailing space ' ' is ignored. Empty lines and lines beginning with '#' are ignored. Signed-off-by: Jani Nikula Hacked-like-crazy-by: David Bremner ---