X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getmail;h=96933ef48384691b3d09c55569dff0e930e65b5f;hb=56c8d8b286ae38e170ce915472f9aa86fabf9fee;hp=e7a4ee2a3a3e02905429751165b44fa388ee8f8f;hpb=789f31d2b70d4fdd868403f23423ff825e6cef26;p=bin.git diff --git a/getmail b/getmail index e7a4ee2..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 @@ -37,7 +39,6 @@ fi; if [ -e ~/.ssh/"ssh_agent_info_$HOSTNAME" ]; then . ~/.ssh/"ssh_agent_info_$HOSTNAME" > /dev/null; fi; -env; PID="$(pgrep -U $(id -u) offlineimap)"; if [ -n "$PID" ]; then