From: Johannes Weißl Date: Sun, 5 Dec 2010 04:22:19 +0000 (+0100) Subject: slightly better mairix escaping X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/9ef362ae89acc75a6a164e5c213e29f5ab9c1d35?ds=sidebyside;hp=75e0e932808c9a9975a5969b5d1a993ad6f33a8c slightly better mairix escaping --- diff --git a/muttjump b/muttjump index cd1b006..82b9ea3 100755 --- a/muttjump +++ b/muttjump @@ -149,7 +149,7 @@ 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' \ + msgid_mairix=$(echo "$msgid_clean" | sed -e 's/[~,/=^]\+/=,/g' \ -e 's/.\{31\}/&=,/g' -e 's/^\(=,\)\+//g' -e 's/$/=/' \ -e 's/\(=,\|=\)\+$/=/g') orig_msgfiles=$($MAIRIX -r "m:$msgid_mairix")