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

Value of header "To: Undisclosed recipients:;" is missing space ("Undisclosedrecipients") #241

Closed
fundo-moretti opened this issue Aug 5, 2024 · 2 comments

Comments

@fundo-moretti
Copy link

It's probably not very important, but there's an inconsistency between version 2.x and 3.x concerning the To header when it has the value "Undisclosed recipients:;".

Source:

From: Test <[email protected]>
Subject: Subject
To: Undisclosed recipients:;

Code:

$mailParser = new MailMimeParser();
$message = $mailParser->parse($source, false);
$headerTo = $message->getHeader('To');
echo $headerTo->getParts()[0]->getValue()

Output in release 2.4.1: "Undisclosed recipients"
Output in release 3.0.2: "Undisclosedrecipients"

Attached, dump of $headerTo->getParts() for both releases:
dump.txt

zbateson added a commit that referenced this issue Aug 10, 2024
@zbateson
Copy link
Owner

Good find, that one could've lingered, thank you!

@zbateson
Copy link
Owner

Released in 3.0.3, let me know if you have any issues.

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

2 participants