]> jaekl.net Git - cfb.git/commitdiff
SendMail: after '.' that terminates "DATA", send only one CRLF, not two.
authorChris Jaekl <cejaekl@yahoo.com>
Sun, 1 Nov 2015 01:55:05 +0000 (10:55 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Sun, 1 Nov 2015 01:55:05 +0000 (10:55 +0900)
prod/net/jaekl/qd/util/SendMail.java
test/net/jaekl/qd/util/SendMailTest.java

index 1f563027ce5b247687be8173f95a9b74ca0b63de..68befa72323fd6e8580cf3b77062bf51e99b388d 100644 (file)
@@ -129,7 +129,7 @@ public class SendMail {
                
                sendMimeParts(pw);
                
-               String result = sendLine(pw, br, "\r\n.\r\n");
+               String result = sendLine(pw, br, "\r\n.");
                return result;
        }
        
index 5d942cb7b870fbabc1db445e0f0c114f213908dc..b7c64ef677488f79ed8ec252398ad4e0cd22bdc9 100644 (file)
@@ -56,7 +56,7 @@ public class SendMailTest {
                                + "Tarzan\r\n"
                                + "\r\n"
                                + "--snip_snip--\r\n"
-                               + "\r\n.\r\n\r\n"
+                               + "\r\n.\r\n"
                                + "QUIT\r\n";
 
                SmtpConversationMock conversat = new SmtpConversationMock(TYPICAL_INIT, TYPICAL);