From dcb478f3296eb62b2fa4358e539ab7a61d8397a3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 31 Jul 2001 05:42:56 +0000 Subject: Ready to ship. svn path=/trunk/; revision=3424 --- fetchmailconf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index 017cf343..b90f1d7d 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -1036,8 +1036,9 @@ class ServerEdit(Frame, MyWidget): self.subwidgets[username].save() self.destruct() - def refreshPort(self): + def defaultPort(self): proto = self.protocol.get() + # Callback to reset the port number whenever the protocol type changes. # 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. @@ -1094,11 +1095,11 @@ class ServerEdit(Frame, MyWidget): Label(protwin, text="Protocol").pack(side=TOP) ButtonBar(protwin, '', self.protocol, protolist, 2, - self.refreshPort) + self.defaultPort) if mode != 'novice': LabeledEntry(protwin, 'On server TCP/IP port:', self.port, leftwidth).pack(side=TOP, fill=X) - self.refreshPort() + self.defaultPort() Checkbutton(protwin, text="POP3: track `seen' with client-side UIDLs?", variable=self.uidl).pack(side=TOP) -- cgit v1.2.3