From: Eric S. Raymond Date: Thu, 5 Jun 1997 15:14:52 +0000 (-0000) Subject: Fix Harry Hoccheiser's bug. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=e2a7a0b8398879f9e2d00f4fd63f488a1de136ef;p=~andy%2Ffetchmail Fix Harry Hoccheiser's bug. svn path=/trunk/; revision=1064 --- diff --git a/driver.c b/driver.c index 0a66c2e6..be0f3947 100644 --- a/driver.c +++ b/driver.c @@ -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 . 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)