X-Git-Url: https://projects.mako.cc/source/muttjump/blobdiff_plain/0fe964f9fe98ad94eadc5b05bead10a71c9dcf5e..57fe30655415d085ef21cfe2db3071a7ba5af668:/muttjump diff --git a/muttjump b/muttjump index fb9bde0..a950edb 100755 --- a/muttjump +++ b/muttjump @@ -71,6 +71,10 @@ function is_callable () { type $1 >/dev/null 2>&1 } +function wc_L () { + awk '{ y = length(); if (y > x) x = y } END { print x }' +} + function usage () { cat >&2 <&2 2>&1 1>&3-) @@ -207,7 +211,8 @@ if [ ! -d "$orig_maildir/cur" ] ; then die "directory $(quote "$orig_maildir") doesn't exist or is no Maildir" fi -jump_expr="~i'$msgid'" +msgid_mutt=$(quote_regexp "$msgid_quoted") +jump_expr="~i'$msgid_mutt'" if [ "$MUTTJUMP_MULTI_SCREEN_MODE" = no ] ; then