summaryrefslogtreecommitdiffstats
path: root/test/unit/mail_handler_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r23391 from trunk to 5.1-stable (#41961).Go MAEDA2024-12-121-10/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23405 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r22746 from trunk to 5.1-stable (#40043).Marius Balteanu2024-02-271-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Receive e-mail replies to news and news comments (#38274).Go MAEDA2023-03-261-1/+35
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22160 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add MissingContainer exception to MailHandler (#38273).Go MAEDA2023-03-261-3/+3
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22158 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Try importing journal replies as issue reply where applicable (#38263).Go MAEDA2023-02-271-0/+15
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22119 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use `require_relative` instead of `require File.expand_path(..., __FILE__)` ↵Go MAEDA2023-01-011-1/+1
| | | | | | | | | (#38093). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Setting @--no-permission-check@ in the mail receiver should not allow ↵Marius Balteanu2022-06-161-0/+29
| | | | | | | | | creating issues in closed and archived projects (#37187). Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@21641 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow addition/removal of subtasks to show in parent's history (#6033).Go MAEDA2021-11-081-4/+13
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21273 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler bypasses add_issue_notes permission (#35045).Go MAEDA2021-04-251-2/+4
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20970 e93f8b46-1217-0410-a6f0-8f06a7374b81
* MailHandler raises NameError exception when generating error message (#35100).Go MAEDA2021-04-221-0/+17
| | | | | | | Patch by Dmitry Makurin and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20959 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of test/unit/mail_handler_test.rbToshi MARUYAMA2020-12-031-19/+28
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20552 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of test/unit/mail_handler_test.rbToshi MARUYAMA2020-11-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20512 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of MailHandlerTest#test_email_with_long_subject_lineToshi MARUYAMA2020-11-261-1/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20496 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of MailHandlerTestToshi MARUYAMA2020-10-271-175/+220
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20210 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of MailHandlerTestToshi MARUYAMA2020-08-091-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add space after comma to MailHandlerTestToshi MARUYAMA2020-08-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19962 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add S/MIME signature mail test (#31593)Toshi MARUYAMA2020-06-031-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19808 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded literal interpolation from MailHandlerTestToshi MARUYAMA2020-06-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19807 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "assert_not" instead of "refute" at ↵Toshi MARUYAMA2020-06-031-1/+1
| | | | | | MailHandlerTest#test_add_issue_with_private_keyword git-svn-id: http://svn.redmine.org/redmine/trunk@19806 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add parentheses to nested method call in ↵Toshi MARUYAMA2020-06-031-1/+1
| | | | | | MailHandlerTest#test_safe_receive_should_rescue_exceptions_and_return_false git-svn-id: http://svn.redmine.org/redmine/trunk@19805 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in test/unit/mail_handler_test.rbToshi MARUYAMA2019-11-051-12/+15
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18901 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/AsciiComments in test/unit/mail_handler_test.rbToshi MARUYAMA2019-10-091-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18630 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix test failure due to missing call to set_tmp_attachments_directory (#32122).Go MAEDA2019-10-041-0/+7
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18593 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to MailHandlerTest (#31946)Toshi MARUYAMA2019-09-241-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log info messages when MailHandler ignored a reply to a nonexistent issue, ↵Go MAEDA2019-09-191-0/+31
| | | | | | | | | journal, or message (#31946). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change textfield to textarea for "Exclude attachments by name" (#19903).Go MAEDA2019-09-181-1/+1
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18476 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix hard-coded string "no subject" in app/models/mail_handler.rb (#5820).Go MAEDA2019-08-251-6/+8
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18388 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r18245 (#31582, #31365).Go MAEDA2019-06-201-11/+0
| | | | | | | Issue subjets are truncated in some cases when they are created via email. git-svn-id: http://svn.redmine.org/redmine/trunk@18269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue subject may be broken if the subject field is split into multiple ↵Jean-Philippe Lang2019-06-101-0/+11
| | | | | | | | lines (#31365). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18245 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "Undefined local variable sender_email" error in ↵Go MAEDA2019-06-101-0/+11
| | | | | | | | | MailHandler#receive_message_reply when receiving a reply to a locked topic (#31503). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18239 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't rescue Exception class (#31387).Go MAEDA2019-05-251-1/+1
| | | | | | | Patch by Go MAEDA and Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allows setting the private flag via mail keyword (#31324).Go MAEDA2019-05-091-0/+15
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18150 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in test/**/*.rb (#26561).Go MAEDA2019-03-211-1/+1
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Decode hexadecimal-encoded literals in order to be frozen string literals ↵Go MAEDA2019-03-191-31/+17
| | | | | | | | | friendly (#31004). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unnecessary encoding magic comment (#31034).Go MAEDA2019-03-161-2/+0
| | | | | | | | | 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
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test for r17914 (#17699).Go MAEDA2019-03-031-0/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17915 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to parse HTML part of multipart (HTML) emails first (#30838).Go MAEDA2019-03-031-0/+11
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17913 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler does not ignore emails sent from emission email address if ↵Go MAEDA2019-02-181-7/+16
| | | | | | | | | Setting.mail_from includes display name (#30785). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17879 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failure.Jean-Philippe Lang2018-12-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17731 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failure.Jean-Philippe Lang2018-12-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17730 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Attachments are added even if validation fails when updating an issue ↵Go MAEDA2018-11-231-0/+15
| | | | | | | | | via email (#28576). Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@17630 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ensure that vendor-defined characters in ISO-2022-JP email subject don't ↵Go MAEDA2018-10-151-0/+14
| | | | | | | | | break issue's subject (#29442). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send emails asynchronously (#26791).Jean-Philippe Lang2018-10-101-0/+1
| | | | | | 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
* Send individual emails for each mail recipient (#26791).Jean-Philippe Lang2018-10-061-5/+6
| | | | | | | | | | | | | | | | | | | | | | | 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