]> git.donarmstrong.com Git - bin.git/commitdiff
escape + and * in mutt_open (gmail seems to like using these in its message ids
authorDon Armstrong <don@donarmstrong.com>
Fri, 31 Jan 2014 00:13:37 +0000 (16:13 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 31 Jan 2014 00:13:37 +0000 (16:13 -0800)
mutt_open

index 8b4408444b52e5454a55cf2af0e890562e825885..375f771c218fafd1098c231b83c8e74e232c6a85 100755 (executable)
--- a/mutt_open
+++ b/mutt_open
@@ -69,6 +69,9 @@ if ! [ -d "$maildir" ] ; then
     exit 2
 fi
 
+# escape message id containing + or *; not going to bother escaping .
+msgid=$(echo -n "$msgid"|sed 's/\([\+\*]\)/\\\\\\\\\1/g')
+
 # UGLY HACK: without sleep, push keys do not reach mutt, I _guess_ that there
 # might be some terminal-related issue here, since also waiting for an input
 # with "read" similarly "solves" the problem