]> code.delx.au - offlineimap/blobdiff - offlineimap.conf
Added timeouts
[offlineimap] / offlineimap.conf
index 01169ebd573eccbe73bce22e019077a3547e7cfe..e36a44e548c142e98f038667a822b086c0c59da1 100644 (file)
@@ -83,6 +83,19 @@ ignore-readonly = no
 # pythonfile = ~/.offlineimap.py
 #
 
+# By default, OfflineIMAP will not exit due to a network error until
+# the operating system returns an error code.  Operating systems can sometimes
+# take forever to notice this.  Here you can activate a timeout on the
+# socket.  This timeout applies to individual socket reads and writes,
+# not to an overall sync operation.  You could perfectly well have a 30s
+# timeout here and your sync still take minutes.
+#
+# Values in the 30-120 second range are reasonable.
+#
+# The default is to have no timeout beyond the OS.  Times are given in seconds.
+#
+# socktimeout = 60
+
 ##################################################
 # Mailbox name recorder
 ##################################################