Hi all, this series adds support for batch tagging through stdin to "notmuch tag". This should be useful and efficient for e.g. initial tagging scripts. See the test patch for an example using a "here document". The hex escaping routines are by David; my additions to them are in separate patches, but they could all be folded together too. BR, Jani. David Bremner (3): hex-escape: (en|de)code strings to/from restricted character set test/hex-xcode: new test binary test/hex-escaping: new test for hex escaping routines Jani Nikula (5): hex-escape: be more strict about the format while decoding hex-escape: add function to decode escaped string in-place cli: add support for batch tagging operations to "notmuch tag" test: add test for notmuch tag --stdin option man: document notmuch tag --stdin option man/man1/notmuch-tag.1 | 44 +++++++++- notmuch-tag.c | 244 ++++++++++++++++++++++++++++++++++++++++++------ test/.gitignore | 1 + test/Makefile.local | 6 +- test/basic | 2 +- test/hex-escaping | 26 +++++ test/hex-xcode.c | 103 ++++++++++++++++++++ test/notmuch-test | 1 + test/tagging | 13 +++ util/Makefile.local | 2 +- util/hex-escape.c | 167 +++++++++++++++++++++++++++++++++ util/hex-escape.h | 38 ++++++++ 12 files changed, 612 insertions(+), 35 deletions(-) create mode 100755 test/hex-escaping create mode 100644 test/hex-xcode.c create mode 100644 util/hex-escape.c create mode 100644 util/hex-escape.h -- 1.7.5.4