Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

Conversation

driesvints
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Doc update? no
BC breaks? no
Deprecations? no
Fixed tickets #...
License MIT

This PR implements egulias/email-validator v3. After some back an forth in egulias/EmailValidator#282 @egulias was so kind to provide a new EmailValidation that properly handles the test case of SwiftMailer's IdentificationHeader validation. ^3.1 is needed to make use of the new email validation. I've added a class check to use the old one when it isn't present for ^2.0.

After merging and tagging this PR we can add support for EmailValidator v3 in Laravel. Let me know if you need anything else 👍

@GrahamCampbell
Copy link
Contributor

Why can't we allow ^3.0?

@driesvints
Copy link
Contributor Author

@GrahamCampbell because the MessageIDValidation class was introduced in v3.1

@GrahamCampbell
Copy link
Contributor

Seems better to allow a wider version range, given all the 2.x versions are allowed, also.

@driesvints
Copy link
Contributor Author

@GrahamCampbell I don't see the need for it.

@michaljusiega
Copy link

@GrahamCampbell see for more symfony/symfony#39685

@GrahamCampbell
Copy link
Contributor

Ah, I see. 3.0.0 is actually broken. In which case, 👍 for this PR, as is.

@fabpot
Copy link
Member

fabpot commented Mar 9, 2021

Thank you @driesvints.

@fabpot fabpot merged commit deea8b1 into swiftmailer:master Mar 9, 2021
@fabpot
Copy link
Member

fabpot commented Mar 9, 2021

Merged and released, should unblock Laravel.

@driesvints driesvints deleted the egulias-email-validator-v3 branch March 9, 2021 13:01
@driesvints
Copy link
Contributor Author

Thanks a lot @fabpot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants