[PATCH] repository: IMAP: minor improvements
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Thu Jun 23 03:01:09 BST 2016
Make it clear what value is the default.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
The following changes since commit 52120beb27a718dbec3d88a00b3448fcb5137777:
man: offlineimapui: minor typo fix (2016-06-19 23:32:01 +0200)
are available in the git repository at:
https://github.com/nicolas33/offlineimap.git ns/minor
for you to fetch changes up to fdf47852caf46a4d12932a065448a6bde1786e9d:
repository: IMAP: minor improvements (2016-06-23 03:58:08 +0200)
----------------------------------------------------------------
offlineimap/repository/IMAP.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py
index 7cdc956..eafd02e 100644
--- a/offlineimap/repository/IMAP.py
+++ b/offlineimap/repository/IMAP.py
@@ -77,7 +77,7 @@ class IMAPRepository(BaseRepository):
def getholdconnectionopen(self):
if self.getidlefolders():
return 1
- return self.getconfboolean("holdconnectionopen", 0)
+ return self.getconfboolean("holdconnectionopen", False)
def getkeepalive(self):
num = self.getconfint("keepalive", 0)
@@ -196,10 +196,10 @@ class IMAPRepository(BaseRepository):
return self.getconfint('remoteport', None)
def getipv6(self):
- return self.getconfboolean('ipv6', None)
+ return self.getconfboolean('ipv6', False)
def getssl(self):
- return self.getconfboolean('ssl', 1)
+ return self.getconfboolean('ssl', True)
def getsslclientcert(self):
xforms = [os.path.expanduser, os.path.expandvars, os.path.abspath]
@@ -295,7 +295,7 @@ class IMAPRepository(BaseRepository):
return self.getconf('reference', '')
def getdecodefoldernames(self):
- return self.getconfboolean('decodefoldernames', 0)
+ return self.getconfboolean('decodefoldernames', False)
def getidlefolders(self):
localeval = self.localeval
@@ -307,7 +307,7 @@ class IMAPRepository(BaseRepository):
return max(num1, num2)
def getexpunge(self):
- return self.getconfboolean('expunge', 1)
+ return self.getconfboolean('expunge', True)
def getpassword(self):
"""Return the IMAP password for this repository.
--
2.7.4
More information about the OfflineIMAP-project
mailing list