From 56c8d8b286ae38e170ce915472f9aa86fabf9fee Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 13 Sep 2017 09:47:50 -0700 Subject: [PATCH] add a VERBOSE flag to getmail --- getmail | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getmail b/getmail index 62e37de..96933ef 100755 --- a/getmail +++ b/getmail @@ -1,11 +1,13 @@ #!/bin/sh +if [ -n "$VERBOSE" ]; then + set -x +fi; + # Configure the two things below for your MUA and the host being run. IMAPHOST=$( awk -F= '/remotehost/{print $2}' ~/.offlineimaprc | head -n 1 ) MUA=mutt -#set -x - # Don't check mail if ~/.nocheck exists and we're not running # interactively. if [ -z "$CRON" ] && [ -e ~/.nocheck ]; then -- 2.39.2