Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Mailer][Mime] Refactor S/MIME encryption handling inSMimeEncryptionListener#20935

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

alamirault
Copy link
Contributor

Fix#20827

Having aSmimeCertificateRepositoryInterface implementation is a good thing I think.
I don't really how to introduce it.

Spomky reacted with thumbs up emoji
@javiereguiluz
Copy link
Member

I don't know much about this 🙏 but the previous example looked pretty convenient.

Is it really a bad practice? If it's not, maybe we can show both alternatives?

@alamirault
Copy link
ContributorAuthor

I thinks it's ok, but I don't really know others possible implementations

@javiereguiluz
Copy link
Member

Let's ask@Spomky. Could you please tell us if the example currently shown on Symfony Docs works and is valid? If it is, I think we should display both the current example and the new proposed ones (so folks don't overcomplicate things when not necessary). Thanks!

@Spomky
Copy link
Contributor

Hi@alamirault and@javiereguiluz,

Yes, the example looks good.
The storage strategy is entirely up to the developers and in this example it is simply a folder-based approach.

The purpose of theSmimeCertificateRepositoryInterface is to resolve the certificate file path for a given email address, as the S/MIME encrypter expects a valid local file path to the certificate.

;
};

The ``repository`` option must be a service ID that implements
:class:`Symfony\\Component\\Mailer\\EventListener\\SmimeCertificateRepositoryInterface`::

Copy link
Contributor

Choose a reason for hiding this comment

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

The purpose of the methodSmimeCertificateRepositoryInterface::findCertificatePathFor is to resolve the certificate file path for a given email address, as the S/MIME encrypter expects a valid local file path to the certificate.

@javiereguiluzjaviereguiluz merged commita76a651 intosymfony:7.3May 8, 2025
2 of 3 checks passed
@javiereguiluz
Copy link
Member

Thanks Antoine for the contribution and thanks to Florent for the review.

I made some minor tweaks while merging:a51f4a0

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SpomkySpomkySpomky requested changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[Mailer][Mime] Refactor S/MIME encryption handling in `SMimeEncryptionL…
4 participants
@alamirault@javiereguiluz@Spomky@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp