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

Line length limit #121

Open
t-ae opened this issue Nov 15, 2021 · 0 comments
Open

Line length limit #121

t-ae opened this issue Nov 15, 2021 · 0 comments

Comments

@t-ae
Copy link

t-ae commented Nov 15, 2021

According to RFC5322:

Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

If we have multiple to, they are joined to comma separated single line.

dictionary["TO"] = to.map { $0.mime }.joined(separator: ", ")

This can easily violate the 998 characters limit.
In my environment, I receive broken mail if there are too many to.
(I think the behavior is up to mail server's implementation)

sbeitzel added a commit to sbeitzel/Swift-SMTP that referenced this issue Dec 22, 2021
sbeitzel added a commit to sbeitzel/Swift-SMTP that referenced this issue Feb 12, 2022
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

No branches or pull requests

1 participant