Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7c67019 authored by Joe Steele's avatar Joe Steele
Browse files

SMTP dot stuffing should be done *after* line wrapping.

parent 564195ba
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -498,10 +498,8 @@ public class SmtpTransport extends Transport {
            executeSimpleCommand("DATA");

            EOLConvertingOutputStream msgOut = new EOLConvertingOutputStream(
                new SmtpDataStuffing(
                    new LineWrapOutputStream(
                        new BufferedOutputStream(mOut, 1024),
                        1000)));
                    new LineWrapOutputStream(new SmtpDataStuffing(
                            new BufferedOutputStream(mOut, 1024)), 1000));

            message.writeTo(msgOut);