From b945a35d6e92a37fccc6aeaf431725e078edefcc Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 2 Dec 2013 10:00:31 +0200 Subject: [PATCH] email-lda: introduce --test-mode option We are going to teach this script sending replies, and this option will disable the functionality, just like in the aiaia-email-test-patchset script. This patch is just a preparation. Signed-off-by: Artem Bityutskiy --- email/aiaiai-email-lda | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda index 472b0cb..7c5a362 100755 --- a/email/aiaiai-email-lda +++ b/email/aiaiai-email-lda @@ -44,6 +44,8 @@ Options: minutes ago from the mail archive directory; --reap-incomplete=MIN remove all incomplete patch series older than current time minus MIN minutes; + --test-mode test mode - work as usually, but do not send + replies; -v, --verbose be verbose; -h, --help show this text and exit. EOF @@ -271,16 +273,20 @@ cleanup_handler() } set_cleanup_handler cleanup_handler -TEMP=`getopt -n $PROG -o v,h --long reap-archive:,reap-incomplete:,verbose,help -- "$@"` || +TEMP=`getopt -n $PROG -o v,h --long test-mode,reap-archive:,reap-incomplete:,verbose,help -- "$@"` || fail_usage "" eval set -- "$TEMP" +test_mode=y archive_min= incomplete_min= verbose= while true; do case "$1" in + --test-mode) + test_mode=y + ;; --reap-archive) archive_min=$(opt_check_number "$1" "$2") shift -- 2.50.1