Remove duplicate end sequence
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Successful in 20m52s Details
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 21m18s Details

Signed-off-by: Andrei Zisu <matzipan@gmail.com>
pull/309/head
Andrei Zisu 2023-10-02 21:50:15 +02:00
parent 3105a0373b
commit e95c275d68
1 changed files with 0 additions and 4 deletions

View File

@ -768,10 +768,6 @@ impl SmtpConnection {
self.stream.write_all(b"\r\n").await?;
}
if !mail.ends_with('\n') {
self.stream.write_all(b".\r\n").await?;
}
//The mail data are terminated by a line containing only a period, that is, the
// character sequence "`<CRLF>`.`<CRLF>`", where the first `<CRLF>` is
// actually the terminator of the previous line (see Section 4.5.2).