Skip to content

Conversation

@hacfi
Copy link
Contributor

@hacfi hacfi commented Oct 24, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

I noticed that the message id from Sendgrid didn't get always parsed properly. Looking into the issue I found that sometimes the format looks like UM1N3y_WXg6h51oIppcERg or X8P9ZIaiT3653-UXj4ljGX which isn't matched by the current regex at https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php#L159-L160
This PR fixes matching all Sendgrid ids.

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.4" but it seems your PR description refers to branch "7.3 for bug fixes".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@hacfi hacfi changed the base branch from 7.4 to 7.3 October 24, 2025 05:08
@nicolas-grekas nicolas-grekas modified the milestones: 7.4, 6.4 Oct 24, 2025
@nicolas-grekas nicolas-grekas changed the title [Mailer] Parse Sendgrid message ids [Mailer] Fix parsing message ids in SMTP responses Oct 24, 2025
@nicolas-grekas
Copy link
Member

Thank you @hacfi.

nicolas-grekas added a commit that referenced this pull request Oct 24, 2025
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead.

Discussion
----------

[Mailer] Fix parsing message ids in SMTP responses

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

I noticed that the message id from Sendgrid didn't get always parsed properly. Looking into the issue I found that sometimes the format looks like `UM1N3y_WXg6h51oIppcERg` or `X8P9ZIaiT3653-UXj4ljGX` which isn't matched by the current regex at https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php#L159-L160
This PR fixes matching all Sendgrid ids.

Commits
-------

f2a254e [Mailer] Fix parsing message ids in SMTP responses
@nicolas-grekas
Copy link
Member

Merged as 385cea7 on branch 6.4.

This was referenced Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants