X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=blobdiff_plain;f=mutt_open;h=6a3cf18ab4bbc0d114a350dd1793491575289912;hp=375f771c218fafd1098c231b83c8e74e232c6a85;hb=4621d23526ccf936d1ad076ece0bc663510dfc52;hpb=ca1656457d09ec73b94210c018e2c825b80fe7d6 diff --git a/mutt_open b/mutt_open index 375f771..6a3cf18 100755 --- a/mutt_open +++ b/mutt_open @@ -69,12 +69,11 @@ 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') +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"