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