From 9ef362ae89acc75a6a164e5c213e29f5ab9c1d35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Sun, 5 Dec 2010 05:22:19 +0100 Subject: [PATCH 1/1] slightly better mairix escaping --- muttjump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.39.5