tweak Message-ID regexp
authorJohannes Weißl <jargon@molb.org>
Mon, 29 Nov 2010 11:32:08 +0000 (12:32 +0100)
committerJohannes Weißl <jargon@molb.org>
Mon, 29 Nov 2010 11:32:08 +0000 (12:32 +0100)
muttjump

index c6453ebdfa395a1cefd7c0ae8390219445a6cadd..8ff2625d3a63462ca455c282a68077d9e5d10341 100755 (executable)
--- a/muttjump
+++ b/muttjump
@@ -89,7 +89,7 @@ if type -p $FORMAIL >/dev/null ; then
 elif type -p $REFORMAIL >/dev/null ; then
     msgid=$($REFORMAIL -c -x Message-ID: | head -n1)
 else
 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)
+    msgid=$(sed -n 's/^Message-ID:[ \t]*\(.*\)/\1/Ip' | head -n1)
 fi
 if [ -z "$msgid" ] ; then
     die "could not find Message-ID header in standard input"
 fi
 if [ -z "$msgid" ] ; then
     die "could not find Message-ID header in standard input"

Benjamin Mako Hill || Want to submit a patch?