]> projects.mako.cc - muttjump/commitdiff
slightly better mairix quoting (3)
authorJohannes Weißl <jargon@molb.org>
Mon, 6 Dec 2010 06:43:47 +0000 (07:43 +0100)
committerJohannes Weißl <jargon@molb.org>
Mon, 6 Dec 2010 06:43:47 +0000 (07:43 +0100)
muttjump

index 38e8a02505bd04e16c88c684ac8d0f742c32f8ae..9cb34b1fcee95786fe56a1554dc4e5a350609598 100755 (executable)
--- a/muttjump
+++ b/muttjump
@@ -154,7 +154,7 @@ case $MUTTJUMP_INDEXER in
         # workaround, split Message-ID in 31-character long AND-linked
         # substrings.
         msgid_mairix=$(echo "$msgid_clean" | sed -e 's/[~,/=^]\+/ /g' \
         # 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/ \+$/=/g' \
+            -e 's/[^ ]\{31\}/& /g' -e 's/^ \+//g' -e 's/ *$/=/g' \
             -e 's/ /=,/g')
         orig_msgfiles=$($MAIRIX -r "m:$msgid_mairix")
         ;;
             -e 's/ /=,/g')
         orig_msgfiles=$($MAIRIX -r "m:$msgid_mairix")
         ;;

Benjamin Mako Hill || Want to submit a patch?