aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-10-08 14:34:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-10-08 14:34:22 +0000
commitc7f3b6621d652480a1b57a6ea2deddd4b71ff2fe (patch)
tree9b7c17d7bf73ffcf937eb9140535622df4c42d29 /fetchmailconf
parent288d03eaf77643d32abe2f009029e73955eb786c (diff)
downloadfetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.tar.gz
fetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.tar.bz2
fetchmail-c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe.zip
Before showdots,
svn path=/trunk/; revision=2975
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf11
1 files changed, 8 insertions, 3 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 15ccc2fb..f3d7004a 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -4,7 +4,7 @@
# by Eric S. Raymond, <esr@snark.thyrsus.com>.
# 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):