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

[Mime] Add PGP feature#50222

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

Closed
the-pulli wants to merge5 commits intosymfony:7.3fromthe-pulli:6.3
Closed

[Mime] Add PGP feature#50222

the-pulli wants to merge5 commits intosymfony:7.3fromthe-pulli:6.3

Conversation

the-pulli
Copy link

As discussed in#50160 here is the corresponding PR.

vinceAmstoutz reacted with hooray emojiSpomky reacted with eyes emoji
@carsonbotcarsonbot added this to the6.3 milestoneMay 3, 2023
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@carsonbotcarsonbot changed the titleAdd PGP feature to MIME component[Mime] Add PGP feature to MIME componentMay 3, 2023
@OskarStarkOskarStark changed the title[Mime] Add PGP feature to MIME componentAdd PGP featureMay 3, 2023
@OskarStarkOskarStark changed the titleAdd PGP feature[Mime] Add PGP featureMay 3, 2023
@nicolas-grekasnicolas-grekas modified the milestones:6.3,6.4May 23, 2023
Copy link
Member

@GromNaNGromNaN left a comment

Choose a reason for hiding this comment

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

This is a great new feature. IMO it should be a new component:symfony/mime is independent of these new classes and it would make it easier to resolve dependencies withpear/crypt_gpg.

@@ -17,6 +17,7 @@
],
"require": {
"php": ">=8.1",
"pear/crypt_gpg": "^1.6",
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be moved torequire-dev as said inprevious comment.

Copy link
Author

Choose a reason for hiding this comment

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

Haven't I moved it to require-dev ind5b9214?
I'm glad you like the idea of that feature. A new component would be essential a standalone package under a certain namespace?

Copy link
Member

Choose a reason for hiding this comment

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

Haven't I moved it to require-dev ind5b9214?

The commit sorts packages alphabetically, but does not move the package torequire-dev.

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

d5b9214 fixes thecomposer.json in the root dir, this issrc/Symfony/Component/Mime/composer.json.

Copy link
Author

Choose a reason for hiding this comment

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

I see. If it should't live insymfony/mime then it should be entirely removed from there and instead moved into a new component (for examplesymfony/pgp) where the dependency is handled?

mdeboer reacted with thumbs up emoji
Copy link
Author

Choose a reason for hiding this comment

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

Hey,

the last months I tested my implementation in a Symfony app and discovered several flaws. For example it doesn't work with templated emails and sending via mail provider via api is also not possible due to the nature of a PGP structured mail.
I still would like to see that feature in Symfony and I'll work on that in the upcoming weeks.

@OskarStarkOskarStark modified the milestones:6.4,7.1Nov 4, 2023
@wouterjwouterj linked an issueNov 4, 2023 that may beclosed by this pull request
@xabbuhxabbuh modified the milestones:7.1,7.2May 15, 2024
@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@fabpot
Copy link
Member

@the-pulli Are you still willing to work on this? I agree with the previous comment that it should be part of a new component that would be well integrated with Mime.

@the-pulli
Copy link
Author

Sure@fabpot , I can give it another shot. My mentioned package from#50160 still working well for me in a Laravel app. But I discovered that most of the transactional mail provider doesn't support PGP encryption. The ones working for me were Mailtrap.io and ZohoMail. I keep you posted with updates and it's nice to know that there's still a demand for this feature.

@Spomky
Copy link
Contributor

Is it really necessary to usepear/crypt_gpg?
Wouldn't it be possible to integrate only what we need to encrypt/sign emails directly into Symfony? I notice that these are mostly command line calls (https://github.com/pear/Crypt_GPG/blob/master/Crypt/GPG.php#L1621-L1666)

I am also interested in this feature. I can make myself available to help integrate it

@stof
Copy link
Member

Closing in favor of#59372

@stofstof closed thisFeb 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@GromNaNGromNaNGromNaN left review comments

@stofstofstof left review comments

@HypeMCHypeMCHypeMC left review comments

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

PGPEncrypter for Symfony Mailer
10 participants
@the-pulli@carsonbot@fabpot@Spomky@stof@GromNaN@HypeMC@nicolas-grekas@OskarStark@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp