aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index d03c4730..8b995876 100644
--- a/driver.c
+++ b/driver.c
@@ -310,7 +310,7 @@ struct hostrec *queryctl;
if (delimited && *bufp == 0)
break; /* end of message */
}
- strcat(bufp, !inheaders ? "\r\n" : "\n");
+ strcat(bufp, inheaders ? "\n" : "\r\n");
if (inheaders)
{
@@ -458,8 +458,9 @@ struct hostrec *queryctl;
fputs("\n", stderr);
/* write message terminator */
- if (SMTP_eom(mboxfd) != SM_OK)
- return(PS_SMTP);
+ if (!queryctl->mda[0])
+ if (SMTP_eom(mboxfd) != SM_OK)
+ return(PS_SMTP);
return(0);
}