From: Johannes Weißl Date: Sun, 5 Dec 2010 21:34:49 +0000 (+0100) Subject: slightly better mairix quoting X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/57fe30655415d085ef21cfe2db3071a7ba5af668?ds=inline slightly better mairix quoting --- diff --git a/muttjump b/muttjump index fc8f3d4..a950edb 100755 --- a/muttjump +++ b/muttjump @@ -153,9 +153,9 @@ case $MUTTJUMP_INDEXER in # mairix can't quote special characters (~,/=^) in search words. As a # workaround, split Message-ID in 31-character long AND-linked # substrings. - msgid_mairix=$(echo "$msgid_clean" | sed -e 's/[~,/=^]\+/=,/g' \ - -e 's/.\{31\}/&=,/g' -e 's/^\(=,\)\+//g' -e 's/$/=/' \ - -e 's/\(=,\|=\)\+$/=/g') + msgid_mairix=$(echo "$msgid_clean" | sed -e 's/.\{31\}/&=,/g' \ + -e 's/[~,/=^]\+/=,/g' -e 's/\(=,\)\+/=,/g' \ + -e 's/^\(=,\)\+//g' -e 's/$/=/' -e 's/\(=,\|=\)\+$/=/g') orig_msgfiles=$($MAIRIX -r "m:$msgid_mairix") ;; mu)