From 20b9578dafd33ab4bc7d3131a38e8e987e82fbd1 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sat, 19 May 2018 00:02:14 +0200 Subject: [PATCH] offlineimap_sync.sh: quiet mode --- offlineimap_sync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap_sync.sh b/offlineimap_sync.sh index 05a1e78..b231511 100755 --- a/offlineimap_sync.sh +++ b/offlineimap_sync.sh @@ -4,10 +4,11 @@ # shamelessly stolen from # https://hobo.house/2015/09/09/take-control-of-your-email-with-mutt-offlineimap-notmuch/ +source /home/rothe/.profile imapserver=$(cat ~/.offlineimaprc | grep remotehost | awk '{print $3}') imapactive=$(ps -ef | grep '[o]fflineimap' | wc -l) netactive=$(ping -c3 $imapserver >/dev/null 2>&1 && echo up || echo down) -mailsync="/usr/bin/offlineimap" +mailsync="/usr/bin/offlineimap -o -u quiet" # kill offlineimap if active, sometimes it hangs case $imapactive in