From: Johannes Weißl Date: Wed, 10 Nov 2010 12:17:48 +0000 (+0100) Subject: add reformail support X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/5a1903d94c625beed84792f64db7aeaf8ea0e5a7 add reformail support --- diff --git a/muttjump b/muttjump index 1f16321..fb01b40 100755 --- a/muttjump +++ b/muttjump @@ -47,6 +47,7 @@ MU=${MU:-mu} NMZMAIL=${NMZMAIL:-nmzmail} SCREEN=${SCREEN:-screen} FORMAIL=${FORMAIL:-formail} +REFORMAIL=${REFORMAIL:-reformail} function die () { echo -e >&2 "$0: $1" @@ -73,6 +74,8 @@ fi # search for Message-ID in STDIN if type -p $FORMAIL >/dev/null ; then msgid=$(formail -c -z -x Message-ID | head -n1) +elif type -p $REFORMAIL >/dev/null ; then + msgid=$(reformail -c -x Message-ID: | head -n1) else msgid=$(sed -n 's/^Message-ID: \(.*\)/\1/Ip' | head -n1) fi