From 1ce596d7135e58186f14b7b193aa2100e5f296fa Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Wed, 20 Sep 2017 13:40:34 +0200 Subject: [PATCH] remotehost should not be required if transporttunnel is used If the config option `transporttunnel` is used the option `remotehost` is not needed, because the tunnel provide the IMAP connection. Signed-off-by: Thomas Merkel Signed-off-by: Nicolas Sebrecht --- offlineimap/imapserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 24d87ba..71c325f 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -92,7 +92,7 @@ class IMAPServer(object): self.af = socket.AF_INET else: self.af = socket.AF_UNSPEC - self.hostname = None if self.preauth_tunnel else repos.gethost() + self.hostname = None if self.transport_tunnel else repos.gethost() self.port = repos.getport() if self.port is None: self.port = 993 if self.usessl else 143