aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-10-31 16:29:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-10-31 16:29:16 +0000
commit79ed046ab9224e42cd94eff3ef2d4d2566815833 (patch)
tree713ceac4bc8db53d94b006983b6cb50703812fc8
parent51276332630d498712af296bd238e34b8daf037c (diff)
downloadfetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.tar.gz
fetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.tar.bz2
fetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.zip
Simpler antispam dumping.
svn path=/trunk/; revision=3764
-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('}');