aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-31 05:42:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-31 05:42:56 +0000
commitdcb478f3296eb62b2fa4358e539ab7a61d8397a3 (patch)
tree7b49d0f3bbbc428d54150475b6c5df0ec1f629a6
parentd25758d0b59ecbd2027df3d02088e43ca6fa637d (diff)
downloadfetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.tar.gz
fetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.tar.bz2
fetchmail-dcb478f3296eb62b2fa4358e539ab7a61d8397a3.zip
Ready to ship.
svn path=/trunk/; revision=3424
-rwxr-xr-xfetchmailconf7
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)