projects
/
muttjump
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add reformail support
[muttjump]
/
muttjump
diff --git
a/muttjump
b/muttjump
index 1f1632167cf18a1163cc2de6609fcbb092ddd939..fb01b40915d2013d8e0b857646da069ebee01ad7 100755
(executable)
--- a/
muttjump
+++ b/
muttjump
@@
-47,6
+47,7
@@
MU=${MU:-mu}
NMZMAIL=${NMZMAIL:-nmzmail}
SCREEN=${SCREEN:-screen}
FORMAIL=${FORMAIL:-formail}
NMZMAIL=${NMZMAIL:-nmzmail}
SCREEN=${SCREEN:-screen}
FORMAIL=${FORMAIL:-formail}
+REFORMAIL=${REFORMAIL:-reformail}
function die () {
echo -e >&2 "$0: $1"
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)
# 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
else
msgid=$(sed -n 's/^Message-ID: \(.*\)/\1/Ip' | head -n1)
fi
Benjamin Mako Hill
||
Want to submit a patch?