projects
/
muttjump
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7630d8
)
safety check for MUTTJUMP_MODE
author
Johannes Weißl
<jargon@molb.org>
Wed, 10 Nov 2010 15:04:35 +0000
(16:04 +0100)
committer
Johannes Weißl
<jargon@molb.org>
Wed, 10 Nov 2010 15:04:35 +0000
(16:04 +0100)
muttjump
patch
|
blob
|
history
diff --git
a/muttjump
b/muttjump
index 3cba9b794eb392dcf64116128f9dff027e554840..e7b5cdb64cf6a7cb70658e5b881524391de85d17 100755
(executable)
--- a/
muttjump
+++ b/
muttjump
@@
-71,6
+71,14
@@
if ! type -p $MUTT >/dev/null ; then
die "$MUTT is not in PATH, set MUTT variable"
fi
+case $MUTTJUMP_MODE in
+ limit|search)
+ ;;
+ *)
+ die "variable MUTTJUMP_MODE must be set to \"limit\" or \"search\""
+ ;;
+esac
+
# search for Message-ID in STDIN
if type -p $FORMAIL >/dev/null ; then
msgid=$($FORMAIL -c -z -x Message-ID | head -n1)
Benjamin Mako Hill
||
Want to submit a patch?