Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smtp: fix processing of initial dot in data #2304

wants to merge 1 commit into from

smtp: fix processing of initial dot in data #2304

wants to merge 1 commit into from


Copy link

This fixes a long standing bug in SMTP.
Even test 911 was inaccurate. Test server did not handle the case.

RFC 5321 specifies the CRLF terminating the DATA command
should be taken into account when chasing the <CRLF>.<CRLF> end marker.
Thus a leading dot character in data is also subject to escaping.

Tests 911 and test server are adapted to this situation.
New tests 951 and 952 check proper handling of initial dot in data.
@monnerat monnerat closed this in 62cf2d1 Feb 12, 2018
@monnerat monnerat deleted the smtpdotescape branch February 12, 2018 19:20
@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants