aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-08 05:40:15 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-08 05:40:15 +0000
commit81784685082ba83c0374a7f2181e9df7e1454e1a (patch)
tree152f25ca2182264943fca91f1d1351648edf9e5e /driver.c
parentcaee98b5322babe97c33a64141a413f430e9a8ba (diff)
downloadfetchmail-81784685082ba83c0374a7f2181e9df7e1454e1a.tar.gz
fetchmail-81784685082ba83c0374a7f2181e9df7e1454e1a.tar.bz2
fetchmail-81784685082ba83c0374a7f2181e9df7e1454e1a.zip
Termination fix.
svn path=/trunk/; revision=244
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);
}