]> git.notmuchmail.org Git - notmuch/commit
notmuch-restore: add support for input format 'batch-tag'
authorDavid Bremner <bremner@debian.org>
Sun, 11 Nov 2012 14:13:48 +0000 (10:13 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 9 Dec 2012 17:33:34 +0000 (13:33 -0400)
commit33434d76f3fdb6f0602ab50bd9e72f5f12ce3e4b
tree19ea75a19f6e26d2025a793509436de196ecfe87
parentfb50cc41fe6f508118697d65a44e8f742a466ca0
notmuch-restore: add support for input format 'batch-tag'

This can be enabled with the new --format=batch-tag command line
option to "notmuch restore". The input must consist of lines of the
format:

    +<tag>|-<tag> [...] [--] id:<msg-id>

Each line is interpreted similarly to "notmuch tag" command line
arguments. The delimiter is one or more spaces ' '. Any characters in
<tag> and <search-terms> MAY be hex encoded with %NN where NN is the
hexadecimal value of the character. Any ' ' and '%' characters in
<tag> and <msg-id> MUST be hex encoded (using %20 and %25,
respectively). Any characters that are not part of <tag> or
<search-terms> MUST NOT be hex encoded.

Leading and trailing space ' ' is ignored. Empty lines and lines
beginning with '#' are ignored.

Commit message mainly stolen from Jani's batch tagging commit, to
follow.
notmuch-restore.c