Skip to content

fix: keep a comma inside an address name - #169

Open
SashaMIT wants to merge 1 commit into
jordan-wright:masterfrom
SashaMIT:fix/address-comma-in-name
Open

SashaMIT wants to merge 1 commit into
jordan-wright:masterfrom
SashaMIT:fix/address-comma-in-name

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Oct 2, 2026 •

Copy link
Copy Markdown

Summary

NewEmailFromReader split To, Cc, Bcc, and Reply-To on every comma. "Doe, John" <john@example.com> came back as "Doe and John" <john@example.com>. (Doe, John) <john@example.com> was split the same way. A comma between addresses still splits. Jordan Wright <jmwright798@gmail.com>, also@example.com is still two addresses.

ExampleGmail and ExampleAttach were renamed to Example_gmail and Example_attach. Those names referred to functions that are not in the package, so go test did not compile.

Test plan

  • The quoted name was three To fields before the change and two after
  • go test -count=1 .

NewEmailFromReader split To and Cc on every comma. "Doe, John" became two fields. A comma in a comment did the same. A comma between addresses still splits.
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.

1 participant