]> git.notmuchmail.org Git - notmuch/commit
notmuch-mutt: Fix tagging issues
authorKevin J. McCarthy <kevin@8t8.us>
Sat, 7 Sep 2013 17:07:57 +0000 (10:07 -0700)
committerDavid Bremner <bremner@debian.org>
Mon, 9 Sep 2013 01:47:51 +0000 (22:47 -0300)
commitf3dc5be6f2c870ca9edf7d60a8c7b80984c37bbf
treef905501c55a287f53cc73fdbb89d8454cfe889c8
parentfae15296eca133c53e17e379e2efc839e4c1907e
notmuch-mutt: Fix tagging issues

This patch fixes three issues with "notmuch-mutt tag":

1. The message_id was not shell quoted.
   Thanks to Jason Miller for the bug report and patch.

2. The tags passed into tag_action() were not being properly quoted.
   The "join before shell_quote" was combining multiple tags into a
   single argument to notmuch tag: '+one -two -three' instead of
   '+one' '-two' '-three'.

3. A "--" was added between the tags and search-term as shown in the
   current notmuch-tag man page.

Thanks to Tomi Ollila for suggesting the simple fix of using
the list form of system(), which bypasses the shell.
contrib/notmuch-mutt/notmuch-mutt