summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Append two spaces to lines when importing an email on CommonMark with ↵Marius Balteanu2021-10-031-0/+3
| | | | | | | | hardbreaks disabled (#32424). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler bypasses add_issue_notes permission (#35045).Go MAEDA2021-04-251-2/+1
| | | | | | | 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-2/+2
| | | | | | | 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
* Allow newlines and quote characters within mail body delimiters (#34794).Go MAEDA2021-03-091-1/+12
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/mail_handler.rbToshi MARUYAMA2020-11-051-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20266 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add space after comma to app/models/mail_handler.rbToshi MARUYAMA2020-10-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20115 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/mail_handler.rbToshi MARUYAMA2020-10-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20112 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 Style/MultilineTernaryOperator in ↵Toshi MARUYAMA2019-11-081-8/+12
| | | | | | app/models/mail_handler.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18960 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Lint/IneffectiveAccessModifier in ↵Toshi MARUYAMA2019-10-191-31/+33
| | | | | | app/models/mail_handler.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18782 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix MailHandler#assign_string_attribute_with_limit is not privateToshi MARUYAMA2019-10-171-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18697 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/SpaceAfterSemicolon in ↵Toshi MARUYAMA2019-10-141-1/+1
| | | | | | app/models/mail_handler.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18657 e93f8b46-1217-0410-a6f0-8f06a7374b81
* svn propdel svn:executable app/models/mail_handler.rbToshi MARUYAMA2019-09-261-0/+0
| | | | | | | | It was added by r16609 accidentally. git-svn-id: http://svn.redmine.org/redmine/trunk@18539 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log info messages when MailHandler ignored a reply to a nonexistent issue, ↵Go MAEDA2019-09-191-21/+34
| | | | | | | | | journal, or message (#31946). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CodeCleanup: RuboCop: Fix Style/RaiseArgs in app/models/mail_handler.rbGo MAEDA2019-08-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18405 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve MailHandler logging for unauthorized attempts (#31899).Go MAEDA2019-08-271-4/+4
| | | | | | | Patch by Gustavo Regal. git-svn-id: http://svn.redmine.org/redmine/trunk@18404 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix hard-coded string "no subject" in app/models/mail_handler.rb (#5820).Go MAEDA2019-08-251-1/+1
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18388 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "Undefined local variable sender_email" error in ↵Go MAEDA2019-06-101-1/+1
| | | | | | | | | 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
* Remove trailing whitespaces from app (#31506).Go MAEDA2019-06-061-1/+1
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18230 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-1/+29
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18150 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use safe navigation operator (#30457).Go MAEDA2019-04-201-31/+15
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18069 e93f8b46-1217-0410-a6f0-8f06a7374b81
* MailHandler.safe_receive does not output any error log (#30457).Go MAEDA2019-04-201-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18066 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #b shortcut instead of #force_encoding (#31059).Go MAEDA2019-03-201-3/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 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
* Parse author's name enclosed in parentheses in the From field when creating ↵Go MAEDA2019-03-031-6/+3
| | | | | | | | | a user account from an email (#17699). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17914 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to parse HTML part of multipart (HTML) emails first (#30838).Go MAEDA2019-03-031-7/+14
| | | | | | | 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-1/+2
| | | | | | | | | 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
* Reverts r17862.Go MAEDA2019-02-181-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17878 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Mail handler does not ignore emails sent from emission email address if ↵Go MAEDA2019-02-121-1/+1
| | | | | | | | | Setting.mail_from includes display name (#30785). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17862 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adding an issue note via email fails due to NoMethodError (#30455).Jean-Philippe Lang2019-01-191-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17817 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Attachments are added even if validation fails when updating an issue ↵Go MAEDA2018-11-231-1/+1
| | | | | | | | | via email (#28576). Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@17630 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send emails asynchronously (#26791).Jean-Philippe Lang2018-10-101-1/+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
* Fix: Allow to set no_notification option when receiving emails via IMAP or ↵Go MAEDA2018-07-061-1/+1
| | | | | | | | | 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/+2
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17304 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix indent (#27025).Go MAEDA2018-03-031-1/+1
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@17226 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optional regex for filtering attachments on incoming emails (#27025).Go MAEDA2018-03-031-0/+4
| | | | | | | 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/+1
| | | | | | | | (#27885). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@17147 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
* 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
* Prevent clash with Rails 5.1 Mailer class.Jean-Philippe Lang2017-06-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16600 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Emails with no text or html Content not handled properly (#25269, #25256).Jean-Philippe Lang2017-03-071-2/+8
| | | | | | 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-10/+10
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16371 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optional Regex delimiters to truncate incoming emails (#5864).Jean-Philippe Lang2016-12-131-2/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16065 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to define a default assigned_to when receiving emails (#23020).Jean-Philippe Lang2016-06-181-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15547 e93f8b46-1217-0410-a6f0-8f06a7374b81