# try to locate path of message using a mail search engine
case $MUTTJUMP_INDEXER in
mairix)
+ msgid_mairix=$msgid_clean
# 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/ *$/=/g' \
- -e 's/ /=,/g')
+ if echo "$msgid_clean" | grep -q '[~,/=^]' ; then
+ msgid_mairix=$(echo "$msgid_clean" | sed -e 's/[~,/=^]\+/ /g' \
+ -e 's/[^ ]\{31\}/& /g' -e 's/^ \+//g' -e 's/ *$/=/g' \
+ -e 's/ /=,/g')
+ fi
orig_msgfiles=$($MAIRIX -r "m:$msgid_mairix")
;;
mu)