Skip to content

Line length limit #121

@t-ae

Description

@t-ae

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions