Commit Graph

152 Commits

Author SHA1 Message Date
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
Toshi MARUYAMA
1d4300b674 remove trailing white-space from test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16584 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-30 18:18:18 +00:00
Jean-Philippe Lang
0f09f161f6 Send reminders about visible issues only (#25713).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:38:05 +00:00
Jean-Philippe Lang
3a2b6c7c96 Enforce issue assignee validation (#23921).
git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-10 12:02:37 +00:00
Jean-Philippe Lang
a4e843842f Adds an assertion for this (#23180).
git-svn-id: http://svn.redmine.org/redmine/trunk@15588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-29 15:33:07 +00:00
Jean-Philippe Lang
c8c694840d Missing fixtures (#14574).
git-svn-id: http://svn.redmine.org/redmine/trunk@15305 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-03 12:36:02 +00:00
Jean-Philippe Lang
fe22c77b59 Don't use custom hostname for all Mailer tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15284 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-26 09:54:12 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
5d70fce6ce Security notifications when password or email adress is changed (#21421).
Patch by Jan Schulz-Hofen.

git-svn-id: http://svn.redmine.org/redmine/trunk@15145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-02-05 07:33:24 +00:00
Jean-Philippe Lang
6bb1ea8ae8 Use regular edit/update actions and named routes for JournalsController.
git-svn-id: http://svn.redmine.org/redmine/trunk@15074 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-21 04:39:56 +00:00
Jean-Philippe Lang
a7b6ad9bb5 Adds tracker name to Redmine issue link titles (#13946).
git-svn-id: http://svn.redmine.org/redmine/trunk@14620 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-21 20:42:06 +00:00
Jean-Philippe Lang
09eef4e75c Mail handler should not ignore emails with x-auto-response-suppress header (#19558).
Patch by Sebastian Paluch.

git-svn-id: http://svn.redmine.org/redmine/trunk@14159 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-04-11 07:15:38 +00:00
Jean-Philippe Lang
104615cb6f Incorrect links generated in emails if host setup uses other port (#19323).
git-svn-id: http://svn.redmine.org/redmine/trunk@14081 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 08:52:48 +00:00
Jean-Philippe Lang
41e1758b00 Renamed test (#18983).
git-svn-id: http://svn.redmine.org/redmine/trunk@13967 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-07 08:25:31 +00:00
Jean-Philippe Lang
8119dcb0f5 Fixed wrong test (#18983).
Issue was not assigned to the version and assert_equal 1, ActionMailer::Base.deliveries.size was passing because of the issue creation notification.

git-svn-id: http://svn.redmine.org/redmine/trunk@13966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-07 08:24:58 +00:00
Jean-Philippe Lang
e94920a5ff Allow filtering of Redmine Reminders by Version (#18983).
Patch by Merul Patel.

git-svn-id: http://svn.redmine.org/redmine/trunk@13964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-07 07:56:58 +00:00
Jean-Philippe Lang
cb8639a7b2 Don't change Setting.default_language in Mailer tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13925 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-21 08:40:44 +00:00
Jean-Philippe Lang
d85f73a30d Upgrade to Rails 4.2.0 (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 17:02:55 +00:00
Jean-Philippe Lang
e3618bdbec Add support for multiple email addresses per user (#4244).
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 14:14:12 +00:00