aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
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;