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"