From: Don Armstrong Date: Fri, 31 Jan 2014 00:13:37 +0000 (-0800) Subject: escape + and * in mutt_open (gmail seems to like using these in its message ids X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ca1656457d09ec73b94210c018e2c825b80fe7d6;p=bin.git escape + and * in mutt_open (gmail seems to like using these in its message ids --- diff --git a/mutt_open b/mutt_open index 8b44084..375f771 100755 --- 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