]> projects.mako.cc - muttjump/commitdiff
slightly better mairix escaping
authorJohannes Weißl <jargon@molb.org>
Sun, 5 Dec 2010 04:22:19 +0000 (05:22 +0100)
committerJohannes Weißl <jargon@molb.org>
Sun, 5 Dec 2010 04:22:19 +0000 (05:22 +0100)
muttjump

index cd1b0062099eae5bcf685e42f7980ecc772f8415..82b9ea3dc582ed3a49142ec14c5273d00fcaaf06 100755 (executable)
--- 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")

Benjamin Mako Hill || Want to submit a patch?