Skip to content

[Mime] Keep Sender full address when used by non-SMTP transports #37580

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

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jul 15, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

refs #36178

The Envelope is an SMTP concept. The Sender is used in the MAIL FROM SMTP command, where only an address is supported. But we are also supporting non-SMTP transports, where the Sender might also be used as the From header, where a full mailbox is supported.

To take into account the 2 usages, this PR keeps the full mailbox in the Envelope and let the SMTP class only use the address (which was already the case anyway).

Copy link
Contributor

@dmaicher dmaicher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Seems good to me. Some tests failing though

@fabpot
Copy link
Member Author

fabpot commented Jul 15, 2020

@dmaicher But tests are failing on deps=high, which is expected, right?

@dmaicher
Copy link
Contributor

@fabpot ah of course. So they should pass once this fix has been merged up I guess? 😊

@fabpot fabpot merged commit b34abaf into symfony:4.4 Jul 15, 2020
@fabpot fabpot deleted the mime-sender branch July 15, 2020 10:52
This was referenced Jul 24, 2020
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.

4 participants