aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-25 18:51:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-25 18:51:21 +0000
commit7fce0e81fd48bcb535de2798f1c356cc82b6d851 (patch)
tree29e7bd1dcefe68a50e514c5b04ba4761861cd9d1 /conf.c
parent61285c7f2db6ad78adb7a66a271dbbfd60aca6fe (diff)
downloadfetchmail-7fce0e81fd48bcb535de2798f1c356cc82b6d851.tar.gz
fetchmail-7fce0e81fd48bcb535de2798f1c356cc82b6d851.tar.bz2
fetchmail-7fce0e81fd48bcb535de2798f1c356cc82b6d851.zip
This version can read a configuration into an object tree and dump it.
svn path=/trunk/; revision=1827
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 5b1a8c5f..05d3fa37 100644
--- a/conf.c
+++ b/conf.c
@@ -186,7 +186,13 @@ void dump_config(struct runctl *runp, struct query *querylist)
numdump("port", ctl->server.port);
numdump("timeout", ctl->server.timeout);
numdump("interval", ctl->server.interval);
- stringdump("envelope", ctl->server.envelope);
+
+ if (ctl->server.envelope == STRING_DISABLED)
+ stringdump("envelope", NULL);
+ else if (ctl->server.envelope == NULL)
+ stringdump("envelope", "Received");
+ else
+ stringdump("envelope", ctl->server.envelope);
numdump("envskip", ctl->server.envskip);
stringdump("qvirtual", ctl->server.qvirtual);
@@ -217,7 +223,7 @@ void dump_config(struct runctl *runp, struct query *querylist)
indent('{');
- stringdump("user", ctl->remotename);
+ stringdump("remote", ctl->remotename);
stringdump("password", ctl->password);
indent('\0');
@@ -252,6 +258,7 @@ void dump_config(struct runctl *runp, struct query *querylist)
#endif /* INET6 */
stringdump("preconnect", ctl->preconnect);
stringdump("postconnect", ctl->postconnect);
+ numdump("limit", ctl->limit);
numdump("fetchlimit", ctl->fetchlimit);
numdump("batchlimit", ctl->batchlimit);
numdump("expunge", ctl->expunge);