]> git.donarmstrong.com Git - bin.git/commitdiff
add a VERBOSE flag to getmail
authorDon Armstrong <don@donarmstrong.com>
Wed, 13 Sep 2017 16:47:50 +0000 (09:47 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 13 Sep 2017 16:47:50 +0000 (09:47 -0700)
getmail

diff --git a/getmail b/getmail
index 62e37de799d5cf9c53cd0015dd1435b400709c42..96933ef48384691b3d09c55569dff0e930e65b5f 100755 (executable)
--- 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