]> projects.mako.cc - muttjump/commitdiff
quote Message-ID in mutt search expression (double!!)
authorJohannes Weißl <jargon@molb.org>
Sun, 5 Dec 2010 03:30:56 +0000 (04:30 +0100)
committerJohannes Weißl <jargon@molb.org>
Sun, 5 Dec 2010 03:30:56 +0000 (04:30 +0100)
muttjump

index fb9bde09f22d96c0bbc60f7ac39b249a6eeaec75..cd1b0062099eae5bcf685e42f7980ecc772f8415 100755 (executable)
--- a/muttjump
+++ b/muttjump
@@ -207,7 +207,8 @@ if [ ! -d "$orig_maildir/cur" ] ; then
     die "directory $(quote "$orig_maildir") doesn't exist or is no Maildir"
 fi
 
-jump_expr="~i'$msgid'"
+msgid_mutt=$(quote_regexp "$msgid_quoted")
+jump_expr="~i'$msgid_mutt'"
 
 if [ "$MUTTJUMP_MULTI_SCREEN_MODE" = no ] ; then
 

Benjamin Mako Hill || Want to submit a patch?