Commit Graph

170 Commits

Author SHA1 Message Date
Marius Balteanu
805b36cbfb Remove unused setting 'Blind carbon copy recipients (bcc)' (#30820).
git-svn-id: http://svn.redmine.org/redmine/trunk@21130 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-01 17:25:13 +00:00
Go MAEDA
97c2607da4 X-Redmine-Issue-Assignee email header field is empty when the assignee of an issue is a group (#35017).
Patch by Akihiro MATOBA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21005 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-18 05:18:23 +00:00
Go MAEDA
b5b02f6ac4 Use Time.use_zone instead of Time.zone= (#35208).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-07 04:24:26 +00:00
Go MAEDA
ba6ace46d7 Fix sending mail with DeliveryJob is deprecated (#29914, #32908).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20882 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 14:41:03 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
19224b8e85 remove space inside array brackets from test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20629 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-11 14:18:26 +00:00
Toshi MARUYAMA
66262850f1 shorten long line of test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-03 13:20:12 +00:00
Toshi MARUYAMA
3f1bb5c8b2 fix source indent of test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-03 13:19:32 +00:00
Toshi MARUYAMA
3c95bccac7 add space after comma to test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20243 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-04 14:43:11 +00:00
Go MAEDA
b0739821e8 Locked users in a group receive notifications when the group is added as a watcher (#4511, #33935).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-01 14:08:45 +00:00
Go MAEDA
4edba4fa9d Show open/closed badge in email notifications (#33834).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19982 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-21 08:32:15 +00:00
Go MAEDA
a8ed1c7c5f Add a link to the issues list in a reminder email (#33099).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19565 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-07 08:20:26 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
6095186e97 Include attachments in news post notifications (#33002).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-24 03:19:00 +00:00
Go MAEDA
dec5f98112 Include attachments in forum post notifications (#16006).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-11 02:34:25 +00:00
Toshi MARUYAMA
dcc9ea1c0a cleanup: rubocop: fix Layout/AlignArguments in test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18900 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-05 14:07:52 +00:00
Toshi MARUYAMA
6a3d42dd69 code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs in test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 05:07:06 +00:00
Go MAEDA
59968110a3 Add additional mail headers for issue tracker (#31910).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18459 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-12 21:52:21 +00:00
Jean-Philippe Lang
f88ef51dc7 Test errors with SQLite3 (#10378).
git-svn-id: http://svn.redmine.org/redmine/trunk@18308 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 17:19:24 +00:00
Jean-Philippe Lang
f53cd3029c Don't show empty fields in email notifications (#10378).
Patch by Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18280 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 07:36:21 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
b0e17e8199 Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
6dfbc9d457 MailerTest fails depending on the time (#31225).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18190 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-22 15:18:33 +00:00
Go MAEDA
6f8bfab179 Show the number of days left until the due date in reminders (#31225).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18174 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-19 08:52:36 +00:00
Go MAEDA
850a889a3e Fix tests to test Mailer.deliver_issue_edit instead of Mailer.deliver_issue_add (#13111, #31065).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18134 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-06 23:34:10 +00:00
Go MAEDA
a7ed8bcbed Show the total number of open issues in a reminder (#31104).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-18 15:32:20 +00:00
Go MAEDA
ce6e9ca950 Don't raise an exception when the emission email address is not RFC compliant (#5913).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18050 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-08 13:28:34 +00:00
Go MAEDA
4f5a3a156c Enable frozen_string_literal for some files under test directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 15:03:47 +00:00
Go MAEDA
e70c283a22 Remove unnecessary encoding magic comment (#31034).
The default script encoding is UTF-8 in Ruby 2.0 or later.

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 06:26:33 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
959da1d3ea Issue emails cannot be threaded by some mailers due to inconsistent Message-ID and References field (#17096).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-04 14:36:54 +00:00
Go MAEDA
0f39eec9e0 "View all issues" link in email reminders points to issues list which does not include issues assigned to a group (#30955).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17918 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-03 22:31:53 +00:00
Go MAEDA
8af0990073 New setting to include the status changes in issue mail notifications subject (#13111).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17907 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-28 08:23:17 +00:00
Go MAEDA
ffcd722c40 Daylight savings causes inconsistency of Message-Id (#13888).
Patch by  Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17890 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-19 11:36:04 +00:00
Go MAEDA
675b0c641d Test that List-Id header field does not include display name and extra angle brackets (#14792).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17873 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-16 22:45:34 +00:00
Go MAEDA
21e503fc71 Show author's name in the From field of email notifications (#5913).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17870 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-15 23:52:30 +00:00
Go MAEDA
7ca65bedc0 Start date and due date in email notifications (#13307).
Patch by  Senya Senya.


git-svn-id: http://svn.redmine.org/redmine/trunk@17840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-25 08:06:23 +00:00
Jean-Philippe Lang
3c423df203 Don't send notifications when using Issue.generate! in tests in order to speed up tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-02 08:36:14 +00:00
Go MAEDA
54cfb7b75e Sort issues by due date in email reminders (#29771).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-06 03:13:46 +00:00
Go MAEDA
5dee8589d5 Remove trailing whitespaces from test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@17623 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-06 02:45:26 +00:00
Jean-Philippe Lang
b4425f6ec1 #last_email already asserts that mail is not nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@17592 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-10 19:06:21 +00:00
Jean-Philippe Lang
717bef36a3 Journal must be saved.
git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-10 18:41:12 +00:00
Jean-Philippe Lang
0c78056a69 Send emails asynchronously (#26791).
Custom async_* delivery methods are removed in favor of ActiveJob (Async by default).

git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-10 17:13:09 +00:00
Jean-Philippe Lang
5533eeff23 Fixed that test_email raises an error with #deliver_later (#26791).
git-svn-id: http://svn.redmine.org/redmine/trunk@17587 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-06 16:07:45 +00:00
Jean-Philippe Lang
015ca36634 Send individual emails for each mail recipient (#26791).
We are creating multipe mails per class notification event, one per
recipient, wrapped in a Mailer::MultiMessage object to send them all at
once.

We keep the existing interface of all class methods intended to be used
by external code the same as they were before, with one exception:

We provide additional recipient addresses in options[:recipients] for
Mailer.security_notification. Since the first-class recipients have to
be users to render individual mails for them, additional recipient
addresses have to be provided with some other channel.

By providing additional recipients in options[:recipients], we can solve
the use-case for address change notifications for users, which probably
is the only real use-case for having to use a plain email address
instead of a User as a notification recipient.

Patch by Holger Just and Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@17583 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-06 13:08:52 +00:00
Jean-Philippe Lang
4137ba8e81 Removes repository routes without repository_id (#26522).
git-svn-id: http://svn.redmine.org/redmine/trunk@17386 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-16 14:27:51 +00:00
Jean-Philippe Lang
0e362e84ab Security notification on password recovery is empty (#28302).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@17269 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-07 07:49:43 +00:00
Jean-Philippe Lang
1cb1be17a9 Fixed link to user in email notifications (#26506).
git-svn-id: http://svn.redmine.org/redmine/trunk@16876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-24 16:59:23 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Toshi MARUYAMA
04fa679cb8 add test of email reminder in case of user language is 'auto' (#26247)
git-svn-id: http://svn.redmine.org/redmine/trunk@16682 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-23 16:46:05 +00:00