From 82e47896cfa8aefea212daa8c0263a617d9ccf08 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 19 Sep 2011 08:27:18 +0200 Subject: [PATCH] Don't ask for username in the preauthtunnel case repos.getuesr() asks for a username if none is specified, but in the case of a tunnel connection, we don't need one, so we need to skip the repos.getuser() call here. Signed-off-by: Sebastian Spaeth --- offlineimap/imapserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 7c740c7..5d2d108 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -56,7 +56,7 @@ class IMAPServer: self.config = repos.getconfig() self.tunnel = repos.getpreauthtunnel() self.usessl = repos.getssl() - self.username = repos.getuser() + self.username = None if self.tunnel else repos.getuser() self.password = None self.passworderror = None self.goodpassword = None