-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Update to PHPMailer 6.6.0 with composer #4329
Conversation
Hello, and thanks for the PR.
Except for my comments, it could be a fine approach. |
The Changelog for PHPMailer could be found here: https://github.com/PHPMailer/PHPMailer/blob/v6.6.0/changelog.md The most important changes are:
All chages could also be found here: PHPMailer Change LogVersion 6.6 (February 28th, 2022)
Version 6.5.4 (February 17th, 2022)
Version 6.5.3 (November 25th, 2021)
Version 6.5.2 (November 25th, 2021)
To be done.
I'm not a user of FreshRSS and could not test it. But the changes are relative trivial. |
@Alkarex If you say that this use of Composer is fine for FreshRSS, then I will be happy to improve and finalize this PR. After that I would try the same for SimplePie. My goal is to make SimplePie easier to update, so that the fork of SimplePie is no longer necessary, or implemented via extending the original classes. This should make FreshRSS ready for the upcoming massive changes of SimplePie 1.6+ (see simplepie/simplepie#722). |
@Art4 I think using Composer as an optional way to update the libraries would indeed be fine, as long as it does not cause burden on the execution code (e.g. more complex/slower autoloader). Regarding SimplePie, I believe we will want to keep the ability to ship customised versions anyway, especially when waiting for upstream PRs to be merged, or when upstream PRs are not accepted |
Of course, manual updating without Composer will still be possible. I don't know exactly how the update process for a library works so far. I guess that the code is downloaded manually as zip and then the corresponding files are replaced? With that in mind, preserving the composer.lock doesn't make sense because if a manual update is done in the future, the composer.lock will be obsolete. Therefore I will delete the file.
This is understandable. My suggestion would be to leave the libraries in the But we could clarify the details later in a corresponding PR. |
Correct. Personally, I have a git clone of the libraries we use, and update them via a diff. In the case of SimplePie, which contains more changes, I cherry pick the latest commits. |
I removed the Update: I also pinned the version of PHPMailer to 6.6.0 because the |
@Alkarex Is there anything else to improve about this PR? I would like to start with the next one, but would like to build on this PR. |
The build failed because of the markdown linting in |
@Art4 Looks good, thanks 👍🏻 $ composer update
$ git status
On branch update-phpmailer-with-composer
Your branch is up to date with 'Art4/update-phpmailer-with-composer'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
lib/phpmailer/phpmailer/COMMITMENT
lib/phpmailer/phpmailer/SECURITY.md
lib/phpmailer/phpmailer/composer.json
lib/phpmailer/phpmailer/get_oauth_token.php
lib/phpmailer/phpmailer/language/
lib/phpmailer/phpmailer/src/OAuth.php
lib/phpmailer/phpmailer/src/POP3.php |
@Alkarex As I mentioned in the PR description I removed files we don't need to keep the changes clear.
But it would be easier for update to keep all files. |
@Art4 Thanks for the efforts. Please add a line for you in https://github.com/FreshRSS/FreshRSS/blob/edge/CREDITS.md |
Changes proposed in this pull request:
How to test the feature manually:
I did not test this feature because it is a draft. I want to hear what do you think about this PR and could potentially improve it even further.
Pull request checklist:
Additional information can be found in the documentation.