summaryrefslogtreecommitdiffstats
path: root/test/unit/mail_handler_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix: Allow to set no_notification option when receiving emails via IMAP or ↵Go MAEDA2018-07-061-2/+3
| | | | | | | | | POP3 (#29191). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17432 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow setting "Parent issue" attribute in emails (#27070).Go MAEDA2018-04-241-1/+5
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17304 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optional regex for filtering attachments on incoming emails (#27025).Go MAEDA2018-03-031-0/+10
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@17225 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Empty email attachments are imported to Redmine, creating broken DB records ↵Jean-Philippe Lang2018-01-071-0/+8
| | | | | | | | (#27885). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@17147 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add test that anonymous user can add watchers by mail (#26654)Toshi MARUYAMA2017-09-071-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup test/unit/mail_handler_test.rbToshi MARUYAMA2017-06-191-10/+23
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16677 e93f8b46-1217-0410-a6f0-8f06a7374b81
* allow unicode whitespace after mail handler body delimiters (#17718)Toshi MARUYAMA2017-06-061-1/+1
| | | | | | Contributed by Holger Just and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16609 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes the digest used for attachments to SHA256 (#25240).Jean-Philippe Lang2017-04-031-5/+5
| | | | | | Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@16454 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to set multiple values in emails for list custom fields (#16549).Jean-Philippe Lang2017-03-081-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16380 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Emails with no text or html Content not handled properly (#25269, #25256).Jean-Philippe Lang2017-03-071-0/+5
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16379 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail parts with empty content should be ignored (#25256).Jean-Philippe Lang2017-03-051-0/+5
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16371 e93f8b46-1217-0410-a6f0-8f06a7374b81
* additional test for mail by Pavel Rosický (#24616)Toshi MARUYAMA2017-01-281-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16274 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optional Regex delimiters to truncate incoming emails (#5864).Jean-Philippe Lang2016-12-131-0/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16065 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When creating issues by receiving an email, watchers created via CC in the ↵Jean-Philippe Lang2016-07-091-2/+3
| | | | | | mail don't get an email notification (#23278). git-svn-id: http://svn.redmine.org/redmine/trunk@15609 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to define a default assigned_to when receiving emails (#23020).Jean-Philippe Lang2016-06-181-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15547 e93f8b46-1217-0410-a6f0-8f06a7374b81
* "I don't want to be notified of changes that I make myself" as Default for ↵Jean-Philippe Lang2016-04-031-1/+1
| | | | | | all User (#14574). git-svn-id: http://svn.redmine.org/redmine/trunk@15288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add test which ensure received mail text attachment keeps original encoding ↵Toshi MARUYAMA2016-03-041-0/+16
| | | | | | | | | | (#21742) This test fails on Ruby >= 2.1 and will be fixed by next revision. Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@15183 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add watchers from To and Cc fields in issue replies (#7017).Jean-Philippe Lang2016-01-221-1/+23
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15092 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow a default version to be set on the command line for incoming emails ↵Jean-Philippe Lang2015-11-011-0/+11
| | | | | | (#7346). git-svn-id: http://svn.redmine.org/redmine/trunk@14789 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes project selection by subaddress optional (#20732).Jean-Philippe Lang2015-10-191-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14690 e93f8b46-1217-0410-a6f0-8f06a7374b81
* MailHandler: Select project by subaddress (redmine+project@example.com) ↵Jean-Philippe Lang2015-10-171-0/+13
| | | | | | | | (#20732). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@14687 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved notification assertion to its own test.Jean-Philippe Lang2015-10-171-5/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed duplicate test case.Jean-Philippe Lang2015-10-171-17/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deliveries already cleared in #setup.Jean-Philippe Lang2015-10-171-4/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14683 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Not testing nested set.Jean-Philippe Lang2015-10-171-5/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14682 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail Handler: add support for allow_override=all (#20543).Jean-Philippe Lang2015-10-171-5/+44
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14681 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler: no attributes overridable by default (#20543).Jean-Philippe Lang2015-10-171-7/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14680 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better handle html-only emails (#16962).Jean-Philippe Lang2015-06-151-5/+25
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14313 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds private issue option to receiving emails (#8424).Jean-Philippe Lang2015-05-101-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14262 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler should not ignore emails with x-auto-response-suppress header ↵Jean-Philippe Lang2015-04-111-1/+0
| | | | | | | | (#19558). Patch by Sebastian Paluch. git-svn-id: http://svn.redmine.org/redmine/trunk@14159 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixturesToshi MARUYAMA2015-01-181-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for multiple email addresses per user (#4244).Jean-Philippe Lang2015-01-171-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81