aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-02-24 01:54:22 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-02-24 01:54:22 +0100
commitc1cf83738a260121cf7dcc007af8709d0bc15419 (patch)
tree65b087c9056013f75192a81ce573ebb7014c3321 /conf.c
parent1c10c414e45ccedc8999f7dd95889fce6f6890ff (diff)
downloadfetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.tar.gz
fetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.tar.bz2
fetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.zip
Feature: bad-header {reject|pass}
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 60eb3ebb..5b5d8779 100644
--- a/conf.c
+++ b/conf.c
@@ -312,6 +312,13 @@ void dump_config(struct runctl *runp, struct query *querylist)
if (ctl->server.esmtp_password)
stringdump("esmtppassword",ctl->server.esmtp_password);
booldump("tracepolls", ctl->server.tracepolls);
+ indent(0);
+ switch(ctl->server.badheader) {
+ /* this is a hack - we map this to a boolean option for
+ * fetchmailconf purposes */
+ case BHREJECT: puts("'badheader': FALSE,"); break;
+ case BHPASS: puts("'badheader': TRUE,"); break;
+ }
indent(0);
fputs("'users': ", stdout);