aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-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])