From: Don Armstrong Date: Wed, 13 Sep 2017 16:47:50 +0000 (-0700) Subject: add a VERBOSE flag to getmail X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=56c8d8b286ae38e170ce915472f9aa86fabf9fee add a VERBOSE flag to getmail --- 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