diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 16:29:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 16:29:16 +0000 |
commit | 79ed046ab9224e42cd94eff3ef2d4d2566815833 (patch) | |
tree | 713ceac4bc8db53d94b006983b6cb50703812fc8 | |
parent | 51276332630d498712af296bd238e34b8daf037c (diff) | |
download | fetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.tar.gz fetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.tar.bz2 fetchmail-79ed046ab9224e42cd94eff3ef2d4d2566815833.zip |
Simpler antispam dumping.
svn path=/trunk/; revision=3764
-rw-r--r-- | conf.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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('}'); |