From 81784685082ba83c0374a7f2181e9df7e1454e1a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 8 Oct 1996 05:40:15 +0000 Subject: Termination fix. svn path=/trunk/; revision=244 --- driver.c | 7 ++++--- 1 file 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); } -- cgit v1.2.3