aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2003-07-17 00:55:18 +0000
committerEric S. Raymond <esr@thyrsus.com>2003-07-17 00:55:18 +0000
commit8a6226720dbb281ad0b409b06e182621cc08b241 (patch)
treec949205e554a713a1b87d130e0cc34807614b9e3 /sink.c
parent8c73d06cb2761c6d4082d00188a82007b22c8095 (diff)
downloadfetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.tar.gz
fetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.tar.bz2
fetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.zip
First round ofmlong-delayed bug fixes.
svn path=/trunk/; revision=3814
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);
+ }
+ }
}
}