aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 796574d4..db8b0dd4 100644
--- a/driver.c
+++ b/driver.c
@@ -464,11 +464,8 @@ static int stuffline(struct query *ctl, char *buf)
* use .<CR><LF> as EOM. If it does, the server will already have
* decorated any . lines it sends back up.
*/
- if (!protocol->delimited && *buf == '.')
- if (sinkfp && ctl->mda)
- fputs(".", sinkfp);
- else if (ctl->smtp_socket != -1)
- SockWrite(ctl->smtp_socket, buf, 1);
+ if (!protocol->delimited && *buf == '.' && ctl->smtp_socket != -1)
+ SockWrite(ctl->smtp_socket, buf, 1);
/* we may need to strip carriage returns */
if (ctl->stripcr)