From 78d696357a6c740c14c1352f4606523fb6004a7e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 8 Jan 1997 20:20:57 +0000 Subject: Rich Kalawiec's byte-stuffing fix. svn path=/trunk/; revision=717 --- driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]) -- cgit v1.2.3