aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-18 17:00:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-18 17:00:21 +0000
commite18a9184fe616d50c41985156c307a862f460694 (patch)
treece7ca88a3a0ed40b896b934802808f115975e2ba /fetchmailconf
parent5ad2b6293e6882c5676dc039cabf47d02c0d7a41 (diff)
downloadfetchmail-e18a9184fe616d50c41985156c307a862f460694.tar.gz
fetchmail-e18a9184fe616d50c41985156c307a862f460694.tar.bz2
fetchmail-e18a9184fe616d50c41985156c307a862f460694.zip
Give fetchmailconf access to feature options.
svn path=/trunk/; revision=2108
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf21
1 files changed, 17 insertions, 4 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 22fddfd5..005acc4d 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -7,7 +7,7 @@
#
# TO DO: Arrange for save and quit buttons to clean up all frames dependent
# on the current ones.
-version = "1.5"
+version = "1.6"
from Tkinter import *
from Dialog import *
@@ -310,8 +310,6 @@ defaultports = {"auto":0,
"IMAP-K4":143,
"ETRN":25}
-protolist = ("auto", "POP2", "POP3", "APOP", "KPOP", "IMAP", "IMAP-K4", "ETRN")
-
authlist = ("password", "kerberos")
listboxhelp = {
@@ -870,6 +868,21 @@ class ServerEdit(Frame, MyWidget):
command=lambda: helpwin(controlhelp)).pack(side=RIGHT)
ctlwin.pack(fill=X)
+ # Compute the available protocols from the compile-time options
+ protolist = ['auto']
+ if 'pop2' in feature_options:
+ protolist.append("POP2")
+ if 'pop3' in feature_options:
+ protolist = protolist + ["POP3", "APOP", "KPOP"]
+ if 'sdps' in feature_options:
+ protolist.append("SDPS")
+ if 'imap' in feature_options:
+ protolist.append("IMAP")
+ if 'imap-gss' in feature_options:
+ protolist.append("IMAP-K4")
+ if 'etrn' in feature_options:
+ protolist.append("ETRN")
+
protwin = Frame(leftwin, relief=RAISED, bd=5)
Label(protwin, text="Protocol").pack(side=TOP)
ButtonBar(protwin, '',
@@ -918,7 +931,7 @@ class ServerEdit(Frame, MyWidget):
self.server.localdomains, None, mdropwin, multihelp)
mdropwin.pack(fill=X)
- if 'interface' in dictmembers or 'monitor' in dictmembers or 'netsec' in dictmembers:
+ if os_type == 'linux' or 'netsec' in feature_options:
secwin = Frame(rightwin, relief=RAISED, bd=5)
Label(secwin, text="Security").pack(side=TOP)
# Don't actually let users set this. KPOP sets it implicitly