From c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 8 Oct 2000 14:34:22 +0000 Subject: Before showdots, svn path=/trunk/; revision=2975 --- fetchmailconf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index 15ccc2fb..f3d7004a 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -4,7 +4,7 @@ # by Eric S. Raymond, . # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.28" +version = "1.29" from Tkinter import * from Dialog import * @@ -969,8 +969,13 @@ class ServerEdit(Frame, MyWidget): def refreshPort(self): proto = self.protocol.get() - if self.port.get() == 0: - self.port.set(defaultports[proto]) + # We used to only reset the port if it had a default (zero) value. + # This turns out to be a bad idea especially in Novice mode -- if + # you set POP3 and then set IMAP, the port invisibly remained 110. + # Now we reset unconditionally on the theory that if you're setting + # a custom port number you should be in expert mode and playing + # close enough attention to notice this... + self.port.set(defaultports[proto]) if not proto in ("POP3", "APOP", "KPOP"): self.uidl.state = DISABLED def user_edit(self, username, mode): -- cgit v1.2.3