From: Johannes Weißl Date: Wed, 10 Nov 2010 11:01:12 +0000 (+0100) Subject: fix msgid escaping (now works with "!" in message id) X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/220e7295f53434bca273cb9a516da29bdb0dd5bb?ds=sidebyside fix msgid escaping (now works with "!" in message id) --- diff --git a/muttjump b/muttjump index 25720f4..0a45d1d 100755 --- a/muttjump +++ b/muttjump @@ -113,7 +113,7 @@ if [ ! -d "$orig_maildir/cur" ] ; then die "directory \"$orig_maildir\" doesn't exist or is no Maildir" fi -jump_cmd="$orig_maildir<$MUTTJUMP_MODE>~i $msgid" +jump_cmd="$orig_maildir<$MUTTJUMP_MODE>~i '$msgid'" if [ "$MUTTJUMP_USE_SCREEN" = no ] ; then @@ -135,8 +135,8 @@ else screen_opts="-S $MUTTJUMP_SCREEN_SESSION" fi - $SCREEN $screen_opts -X eval "select $screen_window_name" "stuff ':push \"$jump_cmd\" -'" + $SCREEN $screen_opts -X eval "select $screen_window_name" "stuff \":push \\\"$jump_cmd\\\" +\"" if [ $? != 0 ] ; then die "You have to manually start a screen session with: $SCREEN $screen_opts -t $screen_window_name $MUTT -f \"$orig_maildir\""