From 79ed046ab9224e42cd94eff3ef2d4d2566815833 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 2002 16:29:16 +0000 Subject: Simpler antispam dumping. svn path=/trunk/; revision=3764 --- conf.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/conf.c b/conf.c index 889a5116..ef80a6e0 100644 --- a/conf.c +++ b/conf.c @@ -395,18 +395,13 @@ void dump_config(struct runctl *runp, struct query *querylist) indent('\0'); fprintf(stdout, "'antispam':'"); - if (!ctl->antispam) - fputs("',\n", stdout); - else + for (idp = ctl->antispam; idp; idp = idp->next) { - for (idp = ctl->antispam; idp; idp = idp->next) - { - fprintf(stdout, "%d", idp->val.status.num); - if (idp->next) - fputs(" ", stdout); - } - fputs("',\n", stdout); + fprintf(stdout, "%d", idp->val.status.num); + if (idp->next) + fputs(" ", stdout); } + fputs("',\n", stdout); listdump("mailboxes", ctl->mailboxes); indent('}'); -- cgit v1.2.3