Skip to content
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

Upgrade to swiftmailer-6 #9791

Merged
merged 6 commits into from
Jul 6, 2018
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Jun 7, 2018

Requires:

Todo:

@rullzer rullzer added this to the Nextcloud 14 milestone Jun 7, 2018
@rullzer rullzer added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jun 7, 2018
@rullzer rullzer changed the title 3rdparty/noid/bump swiftmailer Upgreade to swiftmailer-6 Jun 8, 2018
@MorrisJobke
Copy link
Member

Unit tests fail hard :/

@rullzer
Copy link
Member Author

rullzer commented Jun 8, 2018

Yeah need to fix those as well....

@codecov
Copy link

codecov bot commented Jun 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@c92fe76). Click here to learn what that means.
The diff coverage is 73.91%.

@@            Coverage Diff            @@
##             master    #9791   +/-   ##
=========================================
  Coverage          ?   31.71%           
  Complexity        ?    26020           
=========================================
  Files             ?     1661           
  Lines             ?    96178           
  Branches          ?     1291           
=========================================
  Hits              ?    30504           
  Misses            ?    65674           
  Partials          ?        0
Impacted Files Coverage Δ Complexity Δ
...tings/templates/settings/admin/additional-mail.php 0% <ø> (ø) 0 <0> (?)
config/config.sample.php 0% <0%> (ø) 0 <0> (?)
lib/private/Settings/Admin/Mail.php 88% <50%> (ø) 7 <0> (?)
core/js/setupchecks.js 80.27% <50%> (ø) 0 <0> (?)
settings/Controller/CheckSetupController.php 57.7% <50%> (ø) 77 <1> (?)
lib/private/Mail/Mailer.php 74.41% <92.85%> (ø) 27 <4> (?)

@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch from 52ea2df to e9a6f7e Compare June 8, 2018 12:46
@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch 3 times, most recently from e2817c6 to bd3d9ab Compare June 19, 2018 18:35
@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 19, 2018
@rullzer
Copy link
Member Author

rullzer commented Jun 20, 2018

Should be ready for review.

@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch from bd3d9ab to b6bd2ae Compare June 20, 2018 15:19
@MorrisJobke
Copy link
Member

Make sure this is in the release notes

Please add it to #7827

@rullzer
Copy link
Member Author

rullzer commented Jun 25, 2018

Done. lets get this in!

@MorrisJobke MorrisJobke changed the title Upgreade to swiftmailer-6 Upgrade to swiftmailer-6 Jun 25, 2018
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

messages.push({
msg: t(
'core',
'Use of the the built in php mailer is no longer supported. Please update your e-mail settings.'
Copy link
Member

Choose a reason for hiding this comment

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

I would use a different term then "your email settings", otherwise the admin might be confused and check their personal settings.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@@ -523,6 +523,10 @@ protected function getCronErrors() {
return [];
}

protected function isPhpMailerUsed(): bool {
return $this->config->getSystemValue('mail_smtpmode', 'smtp') === 'php';
Copy link
Member

Choose a reason for hiding this comment

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

The default was php, so if it is not set, it used to do php and should also show the warning?

Copy link
Member

Choose a reason for hiding this comment

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

The new default is smtp ;)

Copy link
Member

Choose a reason for hiding this comment

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

exactly, but smtp requires settings, if they are not there emails fail all of a sudden and you dont get a warning because you used the default, so you get "smtp" now and the warning is not displayed

Copy link
Member

Choose a reason for hiding this comment

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

Ah - got it. Yes this need to be changed to php.

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch!

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch from b6bd2ae to b379bd3 Compare June 25, 2018 18:23
messages.push({
msg: t(
'core',
'Use of the the built in php mailer is no longer supported. Please update your email server settings.'
Copy link
Member

Choose a reason for hiding this comment

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

Could also add a link to the settings, because the messages seem to support html.
Also text suggestion to make clear it's not about the mail server:
Please update the email configuration in the <linky>basic settings<linky>.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point. Will take care later

Copy link
Member Author

Choose a reason for hiding this comment

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

Aaah mmm I'm not sure if we can directly link to settings :S

Copy link
Member Author

Choose a reason for hiding this comment

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

ok added

@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch from b379bd3 to 2a5b1ae Compare June 26, 2018 14:23
rullzer added 6 commits July 4, 2018 08:28
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* \Swift_Mailer handles starting the transport etc properly
* Fixed tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the 3rdparty/noid/bump_swiftmailer branch from 2a5b1ae to 6a0c54d Compare July 4, 2018 06:28
@rullzer
Copy link
Member Author

rullzer commented Jul 4, 2018

@nickvergessen 👍 ??

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Works

@nickvergessen nickvergessen merged commit 3ade347 into master Jul 6, 2018
@nickvergessen nickvergessen deleted the 3rdparty/noid/bump_swiftmailer branch July 6, 2018 08:39
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.

3 participants