]> git.rmz.io Git - dotfiles.git/commitdiff
offlineimap: wait twice as long to download mails
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 23 Apr 2014 00:10:16 +0000 (01:10 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 23 Apr 2014 00:10:16 +0000 (01:10 +0100)
one mail wouldn't download because it was a tiny bit to large and the
monitor timed out before it was done.

bin/offlineimap.cron

index 3c26e5f436e02736e28887ba3d73f6b69d879735..2ce6585b14eeaba19ff35f68fb7f1080560390be 100755 (executable)
@@ -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