[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)
|
return self.getconfboolean("holdconnectionopen", 0)
|
||||||
|
|
||||||
def getkeepalive(self):
|
def getkeepalive(self):
|
||||||
num = self.getconfint("keepalive", 0)
|
if self.getidlefolders():
|
||||||
if num == 0 and self.getidlefolders():
|
|
||||||
return 29*60
|
return 29*60
|
||||||
else:
|
return self.getconfint("keepalive", 0)
|
||||||
return num
|
|
||||||
|
|
||||||
def getsep(self):
|
def getsep(self):
|
||||||
return self.imapserver.delim
|
return self.imapserver.delim
|
||||||
|
Loading…
Reference in New Issue
Block a user