From ca1656457d09ec73b94210c018e2c825b80fe7d6 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 30 Jan 2014 16:13:37 -0800 Subject: [PATCH] escape + and * in mutt_open (gmail seems to like using these in its message ids --- mutt_open | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2