diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-06-05 15:14:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-06-05 15:14:52 +0000 |
commit | e2a7a0b8398879f9e2d00f4fd63f488a1de136ef (patch) | |
tree | d71a5be75d4e17b239b6fc534a4aea1a073f81db | |
parent | 604bf51c4d000e2dd2eed65c40ef6219811d9fd9 (diff) | |
download | fetchmail-e2a7a0b8398879f9e2d00f4fd63f488a1de136ef.tar.gz fetchmail-e2a7a0b8398879f9e2d00f4fd63f488a1de136ef.tar.bz2 fetchmail-e2a7a0b8398879f9e2d00f4fd63f488a1de136ef.zip |
Fix Harry Hoccheiser's bug.
svn path=/trunk/; revision=1064
-rw-r--r-- | driver.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1079,8 +1079,12 @@ int delimited; /* does the protocol use a message delimiter? */ { int n; - /* SMTP byte-stuffing */ - if (*buf == '.') + /* + * SMTP byte-stuffing. We only do this if the protocol does *not* + * use .<CR><LF> as EOM. If it does, the server will already have + * decorated any . lines it sends back up. + */ + if (!delimited && *buf == '.') if (sinkfp && ctl->mda) fputs(".", sinkfp); else if (ctl->smtp_socket != -1) |