]> granicus.if.org Git - curl/commit
smtp: Fixed sending of double CRLF caused by first in EOB
authorSteve Holme <steve_holme@hotmail.com>
Sat, 4 May 2013 08:52:09 +0000 (09:52 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 4 May 2013 09:00:33 +0000 (10:00 +0100)
commit99b40451836dfea2d5dce2ada4fab15b2ab5bfb2
tree1ee978ec9e40ba8cc9bf1c38ecc5ed3099505319
parent087f9bb20ae8517a8aa8fa847fe7b25ab0603ad7
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.
14 files changed:
lib/smtp.c
lib/smtp.h
tests/data/test1320
tests/data/test1406
tests/data/test900
tests/data/test901
tests/data/test902
tests/data/test903
tests/data/test904
tests/data/test905
tests/data/test906
tests/data/test907
tests/data/test908
tests/data/test909