diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-07-31 05:42:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-07-31 05:42:56 +0000 |
commit | dcb478f3296eb62b2fa4358e539ab7a61d8397a3 (patch) | |
tree | 7b49d0f3bbbc428d54150475b6c5df0ec1f629a6 /fetchmailconf | |
parent | d25758d0b59ecbd2027df3d02088e43ca6fa637d (diff) | |
download | fetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.tar.gz fetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.tar.bz2 fetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.zip |
Ready to ship.
svn path=/trunk/; revision=3424
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 7 |
1 files changed, 4 insertions, 3 deletions
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) |