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

Limit generated emails to 254 characters #1812

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

KrzysiekJ
Copy link
Contributor

RFC 5321 states that “The maximum total length of a reverse-path or forward-path is 256 octets (including the punctuation and element separators).”, hence, as path has to contain two angle brackets, it limits email length to 254 characters.

See https://stackoverflow.com/a/574698 for more details.

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this! We'll just need a RELEASE.rst file (see other PRs for examples), with content like the following:

RELEASE_TYPE: patch

This patch fixes an off-by-one error in the maximum length of :func:`~hypothesis.strategies.emails`.
Thanks to Krzysztof Jurewicz for :pull:`1812`.

RFC 5321 states that “The maximum total length of a reverse-path or
forward-path is 256 octets (including the punctuation and element
separators).”, hence, as path has to contain two angle brackets, it
limits email length to 254 characters.
@KrzysiekJ
Copy link
Contributor Author

Ok, added.

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Zac-HD Zac-HD merged commit f81dba1 into HypothesisWorks:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants