]> git.donarmstrong.com Git - bin.git/blobdiff - getmail
add mutt alias which executes neomutt if that exists
[bin.git] / getmail
diff --git a/getmail b/getmail
index e7a4ee2a3a3e02905429751165b44fa388ee8f8f..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
@@ -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