diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-08 05:40:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-08 05:40:15 +0000 |
commit | 81784685082ba83c0374a7f2181e9df7e1454e1a (patch) | |
tree | 152f25ca2182264943fca91f1d1351648edf9e5e /driver.c | |
parent | caee98b5322babe97c33a64141a413f430e9a8ba (diff) | |
download | fetchmail-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); } |