diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-18 17:00:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-18 17:00:21 +0000 |
commit | e18a9184fe616d50c41985156c307a862f460694 (patch) | |
tree | ce7ca88a3a0ed40b896b934802808f115975e2ba /conf.c | |
parent | 5ad2b6293e6882c5676dc039cabf47d02c0d7a41 (diff) | |
download | fetchmail-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.c | 49 |
1 files changed, 48 insertions, 1 deletions
@@ -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('{'); |