Skip to content

make encoding compliant with rfc 2047#228

Open
Awlexus wants to merge 2 commits intoDockYard:masterfrom
Awlexus:issue/227
Open

make encoding compliant with rfc 2047#228
Awlexus wants to merge 2 commits intoDockYard:masterfrom
Awlexus:issue/227

Conversation

@Awlexus
Copy link
Copy Markdown

@Awlexus Awlexus commented Apr 1, 2026

Closes #227 .

Changes proposed in this pull request

This change fixes 2 violations of RFC2047:

  • Quotes (") are not allowed in encoded words
  • Whitespaces are not allowed inside encoded words

@bcardarella
Copy link
Copy Markdown
Member

@andrewtimberlake thoughts? We've pushed back against strict spec RFC compliance in the interest of usability but it's your call

@Awlexus
Copy link
Copy Markdown
Author

Awlexus commented Apr 2, 2026

I've added a new commit to handle encoding characters like , in encoded words. This was causing problems in some email clients who would interpret recipients like John, Smith as the 2 recipients John and Smith.

With regards to usability, how exactly would stricter compliance with the RFC hinder usability? These changes only affect the renderer, so I hope that aside from the output being changed to be more esoteric, should not change how developers use the API and make it more compatible when seen with email clients.

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.

human readable portion of addresses are not encoded properly when non-ASCII

2 participants