From ea9f6989b42d289af2da02c412d53fb532e4a908 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Wed, 10 Nov 2010 16:04:35 +0100 Subject: [PATCH] safety check for MUTTJUMP_MODE --- muttjump | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.39.5