diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-08 20:20:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-08 20:20:57 +0000 |
commit | 78d696357a6c740c14c1352f4606523fb6004a7e (patch) | |
tree | 27836da15b17df8ea512a534cbfbed85d49b1677 | |
parent | ab7c3a1894f198a83d961459fb9c4387f4d9a634 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]) |