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 <tm@core.io>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Thomas Merkel 2017-09-20 13:40:34 +02:00 committed by Nicolas Sebrecht
parent 4b18ffd5e3
commit 1ce596d713

View File

@ -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