aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-07-23 07:39:07 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-07-23 07:39:07 +0000
commitb1fabdf1b335942c08077df08f385b63d74dd770 (patch)
treec01262bcfed884b1e783e7bfa59efc6a2d9c34e6
parenta912cdfea4166374b0520d56788650309c67a1ff (diff)
downloadfetchmail-b1fabdf1b335942c08077df08f385b63d74dd770.tar.gz
fetchmail-b1fabdf1b335942c08077df08f385b63d74dd770.tar.bz2
fetchmail-b1fabdf1b335942c08077df08f385b63d74dd770.zip
Dump antispam field as string, not list.
svn path=/trunk/; revision=2015
-rw-r--r--conf.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/conf.c b/conf.c
index b98ac1d0..1ccbecf4 100644
--- a/conf.c
+++ b/conf.c
@@ -270,14 +270,21 @@ void dump_config(struct runctl *runp, struct query *querylist)
numdump("expunge", ctl->expunge);
listdump("smtphunt", ctl->smtphunt);
stringdump("smtpaddress", ctl->smtpaddress);
- fprintf(stdout, "'antispam':[");
- for (idp = ctl->antispam; idp; idp = idp->next)
+
+ indent('\0');
+ fprintf(stdout, "'antispam:'");
+ if (!ctl->antispam)
+ fputs("'\n", stdout);
+ else
{
- fprintf(stdout, "%d", idp->val.status.num);
- if (idp->next)
- fputs(", ", stdout);
+ for (idp = ctl->antispam; idp; idp = idp->next)
+ {
+ fprintf(stdout, "%d", idp->val.status.num);
+ if (idp->next)
+ fputs(" ", stdout);
+ }
+ fputs("',\n", stdout);
}
- fputs("],\n", stdout);
listdump("mailboxes", ctl->mailboxes);
indent('}');