[imaplib2 removal] Revert "Allow keepalive to be overridden by user if imapfolders is set"
This reverts commit 8cd2bdf7f5
.
This commit is contained in:
parent
8e1fc71879
commit
3869af9e0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user