summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use Array#intersect? introduced in Ruby 3.1 (#38585).Go MAEDA2024-08-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/StringIdentifierArgument (#39888).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/SymbolConversion (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup debug code in app/models/mail_handler.rb (#39184).Go MAEDA2023-10-121-1/+1
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22339 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Receive e-mail replies to news and news comments (#38274).Go MAEDA2023-03-261-0/+35
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22160 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add LockedTopic exception to MailHandler (#38273).Go MAEDA2023-03-261-1/+2
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22159 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add MissingContainer exception to MailHandler (#38273).Go MAEDA2023-03-261-6/+7
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22158 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/InverseMethods: Use `present?` instead of ↵Go MAEDA2023-03-251-1/+1
| | | | | | inverting `blank?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Try importing journal replies as issue reply where applicable (#38263).Go MAEDA2023-02-271-6/+5
| | | | | | | Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22119 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update Mail gem to 2.8 (#37993).Go MAEDA2023-02-051-6/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22094 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-3/+17
| | | | | | | | | 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
* 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