From 7fce0e81fd48bcb535de2798f1c356cc82b6d851 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 25 May 1998 18:51:21 +0000 Subject: This version can read a configuration into an object tree and dump it. svn path=/trunk/; revision=1827 --- conf.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'conf.c') 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); -- cgit v1.2.3