aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-30 16:55:26 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-30 16:55:26 +0000
commit840a99ec74300f9802ef80dfed53765db9de8a93 (patch)
treea016188c355e4323bc51f5deba4b56f572d42671
parent1fb435ea62764dcdb5db42dd0fe11e29e23acc2f (diff)
downloadfetchmail-840a99ec74300f9802ef80dfed53765db9de8a93.tar.gz
fetchmail-840a99ec74300f9802ef80dfed53765db9de8a93.tar.bz2
fetchmail-840a99ec74300f9802ef80dfed53765db9de8a93.zip
Avoid incorrect byte-stuffing.
svn path=/trunk/; revision=1435
-rw-r--r--NEWS5
-rw-r--r--driver.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index ee80be43..e2ac5d13 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,11 @@
Release Notes:
------------------------------------------------------------------------------
+fetchmail-4.2.9 ()
+* Don't byte-stuff when writing to an MDA.
+
+There are 285 people on the fetchmail-friends list.
+
fetchmail-4.2.8 (Sun Sep 28 16:59:59 EDT 1997)
* Fixed a bug in POP2 compilation introduced sometime after 4.0.8.
* Only emit length-mismatch messages in verbose mode.
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)