From: Samir Benmendil Date: Wed, 23 Apr 2014 00:10:16 +0000 (+0100) Subject: offlineimap: wait twice as long to download mails X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/5e7a6b583983976fc67c3f6a013274347d183308?ds=inline offlineimap: wait twice as long to download mails one mail wouldn't download because it was a tiny bit to large and the monitor timed out before it was done. --- diff --git a/bin/offlineimap.cron b/bin/offlineimap.cron index 3c26e5f..2ce6585 100755 --- a/bin/offlineimap.cron +++ b/bin/offlineimap.cron @@ -5,7 +5,7 @@ monitor() { local pid=$1 i=0 while ps $pid &>/dev/null; do - if (( i++ > 5)); then + if (( i++ > 10)); then echo "Max checks reached. Sending SIGKILL to ${pid}..." >&2 kill -9 $pid; return 1 fi