aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
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 /conf.c
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 'conf.c')
-rw-r--r--conf.c49
1 files changed, 48 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index f85e9f58..0b112ab4 100644
--- a/conf.c
+++ b/conf.c
@@ -129,7 +129,54 @@ void dump_config(struct runctl *runp, struct query *querylist)
fputs("from Tkinter import TRUE, FALSE\n\n", stdout);
- fputs("# Start of initializer\n", stdout);
+ /*
+ * We need this in order to know whether `interface' and `monitor'
+ * are valid options or not.
+ */
+#ifdef linux
+ fputs("os_type = 'linux'\n", stdout);
+#else
+ fputs("os_type = 'generic'\n", stdout);
+#endif
+
+ /*
+ * This should be approximately in sync with the -V option dumping
+ * in fetchmail.c.
+ */
+ printf("feature_options = (");
+#ifdef POP2_ENABLE
+ printf("'pop2',");
+#endif /* POP2_ENABLE */
+#ifdef POP3_ENABLE
+ printf("'pop3',");
+#endif /* POP3_ENABLE */
+#ifdef IMAP_ENABLE
+ printf("'imap',");
+#endif /* IMAP_ENABLE */
+#ifdef GSSAPI
+ printf("'imap-gss',");
+#endif /* GSSAPI */
+#ifdef RPA_ENABLE
+ printf("'rpa',");
+#endif /* RPA_ENABLE */
+#ifdef SDPS_ENABLE
+ printf("'sdps',");
+#endif /* SDPS_ENABLE */
+#ifdef ETRN_ENABLE
+ printf("'etrn',");
+#endif /* ETRN_ENABLE */
+#if OPIE
+ printf("'opie',");
+#endif /* OPIE */
+#if INET6
+ printf("'inet6',");
+#endif /* INET6 */
+#if NET_SECURITY
+ printf("'netsec',");
+#endif /* NET_SECURITY */
+ printf(")\n");
+
+ fputs("# Start of configuration initializer\n", stdout);
fputs("fetchmailrc = ", stdout);
indent('{');