#!/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
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