smtp: Fixed sending of double CRLF caused by first in EOB

If the mail sent during the transfer contains a terminating <CRLF> then
we should not send the first <CRLF> of the EOB as specified in RFC-5321.

Additionally don't send the <CRLF> if there is "no mail data" as the
DATA command already includes it.
This commit is contained in:
Steve Holme
2013-05-04 09:52:09 +01:00
parent 087f9bb20a
commit 99b4045183
14 changed files with 29 additions and 25 deletions

View File

@@ -52,7 +52,6 @@ QUIT
</protocol>
<upload>
mail body
.
</upload>
</verify>