Don't ask for hostname if using a tunnel

In tunnel mode, we don't need to ask for a hostname because there is no
need for one. Fix this.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2011-09-19 15:07:34 +02:00
parent b92e453f0e
commit eeef8f4bab

View File

@ -60,7 +60,7 @@ class IMAPServer:
self.password = None
self.passworderror = None
self.goodpassword = None
self.hostname = repos.gethost()
self.hostname = None if self.tunnel else repos.gethost()
self.port = repos.getport()
if self.port == None:
self.port = 993 if self.usessl else 143