aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-08 20:20:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-08 20:20:57 +0000
commit78d696357a6c740c14c1352f4606523fb6004a7e (patch)
tree27836da15b17df8ea512a534cbfbed85d49b1677
parentab7c3a1894f198a83d961459fb9c4387f4d9a634 (diff)
downloadfetchmail-78d696357a6c740c14c1352f4606523fb6004a7e.tar.gz
fetchmail-78d696357a6c740c14c1352f4606523fb6004a7e.tar.bz2
fetchmail-78d696357a6c740c14c1352f4606523fb6004a7e.zip
Rich Kalawiec's byte-stuffing fix.
svn path=/trunk/; revision=717
-rw-r--r--driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index b545cde1..1bad6bb1 100644
--- a/driver.c
+++ b/driver.c
@@ -726,8 +726,10 @@ struct query *ctl; /* query control record */
/* SMTP byte-stuffing */
if (*bufp == '.' && ctl->mda[0] == 0)
- if (sinkfp)
+ if (ctl->mda[0])
fputs(".", sinkfp);
+ else if (sinkfp)
+ SockWrite(bufp, 1, 1, sinkfp);
/* replace all LFs with CR-LF in the line */
if (!ctl->mda[0])