Allow keepalive to be overridden by user if imapfolders is set
This commit is contained in:
parent
3847d0ba9d
commit
8cd2bdf7f5
@ -79,9 +79,11 @@ class IMAPRepository(BaseRepository):
|
|||||||
return self.getconfboolean("holdconnectionopen", 0)
|
return self.getconfboolean("holdconnectionopen", 0)
|
||||||
|
|
||||||
def getkeepalive(self):
|
def getkeepalive(self):
|
||||||
if self.getidlefolders():
|
num = self.getconfint("keepalive", 0)
|
||||||
|
if num == 0 and self.getidlefolders():
|
||||||
return 29*60
|
return 29*60
|
||||||
return self.getconfint("keepalive", 0)
|
else:
|
||||||
|
return num
|
||||||
|
|
||||||
def getsep(self):
|
def getsep(self):
|
||||||
return self.imapserver.delim
|
return self.imapserver.delim
|
||||||
|
Loading…
Reference in New Issue
Block a user