X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mutt_open;h=6a3cf18ab4bbc0d114a350dd1793491575289912;hb=56c8d8b286ae38e170ce915472f9aa86fabf9fee;hp=8b4408444b52e5454a55cf2af0e890562e825885;hpb=0274716853a387ec70a6039e374d69a300ee1f79;p=bin.git diff --git a/mutt_open b/mutt_open index 8b44084..6a3cf18 100755 --- a/mutt_open +++ b/mutt_open @@ -69,9 +69,11 @@ if ! [ -d "$maildir" ] ; then exit 2 fi +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 -sleep 0.1 -mutt_keys="$HIDE_SIDEBAR_CMD/~i$msgid\n\n" +sleep 0.2 +mutt_keys="$HIDE_SIDEBAR_CMD/=i$msgid\n\n" exec $MUTT $MUTT_FLAGS -f "$maildir/" -e "push $mutt_keys"