]> Pileus Git - ~andy/fetchmail/commitdiff
Fix Harry Hoccheiser's bug.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 5 Jun 1997 15:14:52 +0000 (15:14 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 5 Jun 1997 15:14:52 +0000 (15:14 -0000)
svn path=/trunk/; revision=1064

driver.c

index 0a66c2e6769b968320e2df85a49c8da626a8bdea..be0f394761d13349cd4afa14c63bbab78aed487f 100644 (file)
--- 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 .<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)