aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sink.c b/sink.c
index aee27f7e..a8395661 100644
--- a/sink.c
+++ b/sink.c
@@ -624,10 +624,15 @@ int stuffline(struct query *ctl, char *buf)
}
else /* if (!protocol->delimited) -- not byte-stuffed already */
{
- if (!ctl->mda)
- SockWrite(ctl->smtp_socket, buf, 1); /* byte-stuff it */
- else
- /* leave it alone */;
+ if (!ctl->mda) /* byte-stuff it */
+ {
+ if (!ctl->bsmtp)
+ SockWrite(ctl->smtp_socket, buf, 1);
+ else
+ {
+ fwrite(buf, 1, 1, sinkfp);
+ }
+ }
}
}