From: Johannes Weißl Date: Wed, 10 Nov 2010 15:04:35 +0000 (+0100) Subject: safety check for MUTTJUMP_MODE X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/ea9f6989b42d289af2da02c412d53fb532e4a908?hp=e7630d8b06c9e3e1119f65e9c2e12f0f60458517 safety check for MUTTJUMP_MODE --- diff --git a/muttjump b/muttjump index 3cba9b7..e7b5cdb 100755 --- 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)