summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/crontab2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/crontab b/misc/crontab
new file mode 100644
index 0000000..d4296f6
--- /dev/null
+++ b/misc/crontab
@@ -0,0 +1,2 @@
+# sync IMAP store every 5min for offline use
+*/5 * * * * test $(ps -eo etimes,args | grep offlineimap | grep -v grep | awk '{print $1}END{if(NR==0){print 0}}') -gt 300 && killall -9 offlineimap; offlineimap -q -u quiet