aboutsummaryrefslogtreecommitdiffstats
path: root/transact.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 /transact.c
parent1c10c414e45ccedc8999f7dd95889fce6f6890ff (diff)
downloadfetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.tar.gz
fetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.tar.bz2
fetchmail-c1cf83738a260121cf7dcc007af8709d0bc15419.zip
Feature: bad-header {reject|pass}
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/transact.c b/transact.c
index c6ea7e35..9d151607 100644
--- a/transact.c
+++ b/transact.c
@@ -583,7 +583,10 @@ eoh:
* message/rfc822 attachment and forward to postmaster (Rob
* MacGregor)
*/
- if (!refuse_mail && !isspace((unsigned char)line[0]) && !strchr(line, ':'))
+ if (!refuse_mail
+ && !ctl->server.badheader == BHPASS
+ && !isspace((unsigned char)line[0])
+ && !strchr(line, ':'))
{
if (linelen != strlen (line))
has_nuls = TRUE;