Defect #32003

Project copy always send email notifications ignoring "Send email notifications during the project copy" option

Added by Yuichi HARADA about 2 years ago. Updated about 2 years ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution: Affected version:4.0.0

Description

When copying a project in the projects list(Administration > Projects), you can disable sending an email by unchecking the "Send email notifications during the project copy" checkbox.
However, even if this checkbox is unchecking, email notifications are sent.

ScreenShot_2019-09-04.png (66.4 KB) Yuichi HARADA, 2019-09-04 03:57

History

#1 Updated by Go MAEDA about 2 years ago

  • Subject changed from When copying a project, send an email even if email notification is not required to Project copy always send email notifications ignoring "Send email notifications during the project copy" option
  • Category set to Email notifications
  • Status changed from New to Confirmed
  • Affected version set to 4.0.0

The option does not work since Redmine 4.0.0. Probably it is caused by #26791. Replacing deliver_later with deliver in app/models/mailer.rb can be a quick-and-dirty workaround.

#2 Updated by Pavel Rosick√Ĺ about 2 years ago

this method is problematic and should be deprecated because it can't reliably work with async deliveries https://github.com/redmine/redmine/blob/master/app/models/mailer.rb#L611

it might be better not to generate emails at all if you don't want to send them

Also available in: Atom PDF