[imaplib2 removal] Revert "Allow keepalive to be overridden by user if imapfolders is set"

This reverts commit 8cd2bdf7f5.
This commit is contained in:
John Goerzen 2009-08-12 14:49:12 -05:00
parent 8e1fc71879
commit 3869af9e0b

View File

@ -79,11 +79,9 @@ class IMAPRepository(BaseRepository):
return self.getconfboolean("holdconnectionopen", 0)
def getkeepalive(self):
num = self.getconfint("keepalive", 0)
if num == 0 and self.getidlefolders():
if self.getidlefolders():
return 29*60
else:
return num
return self.getconfint("keepalive", 0)
def getsep(self):
return self.imapserver.delim