From 5a1903d94c625beed84792f64db7aeaf8ea0e5a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Wed, 10 Nov 2010 13:17:48 +0100 Subject: [PATCH 1/1] add reformail support --- muttjump | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5