aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c15
1 files 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('}');