Unquoted message ID in notmuch-mutt-tag

Subject: Unquoted message ID in notmuch-mutt-tag

Date: Mon, 22 Jul 2013 17:33:03 -0700

To: notmuch@notmuchmail.org

Cc:

From: Jason Miller


Hi,

Just started using notmuch along with notmuch-mutt.  I found a bug in
notmuch-mutt where the message id is not shell-quoted in the tag_action.
a simple one-line-fix is to shell-quote the result of get_message_id:

@@ -150,7 +150,7 @@
 }
 
 sub tag_action(@) {
-    my $mid = get_message_id();
+    my $mid = shell_quote(get_message_id());
 
     system("notmuch tag "
           . shell_quote(join(' ', @_))

-Jason

Thread: