Commit Graph

178 Commits

Author SHA1 Message Date
Toshi MARUYAMA
612221d36a svn propdel svn:executable app/models/mail_handler.rb
It was added by r16609 accidentally.



git-svn-id: http://svn.redmine.org/redmine/trunk@18539 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-26 02:38:50 +00:00
Go MAEDA
75df6ead3b Log info messages when MailHandler ignored a reply to a nonexistent issue, journal, or message (#31946).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18480 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-19 09:38:39 +00:00
Go MAEDA
fe0a89d7d1 CodeCleanup: RuboCop: Fix Style/RaiseArgs in app/models/mail_handler.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18405 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-27 16:08:44 +00:00
Go MAEDA
e9d74c01d0 Improve MailHandler logging for unauthorized attempts (#31899).
Patch by Gustavo Regal.


git-svn-id: http://svn.redmine.org/redmine/trunk@18404 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-27 15:42:05 +00:00
Go MAEDA
959b55779f Fix hard-coded string "no subject" in app/models/mail_handler.rb (#5820).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18388 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-25 00:09:10 +00:00
Go MAEDA
7bb8ab5e24 Fix "Undefined local variable sender_email" error in 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
2019-06-10 00:54:28 +00:00
Go MAEDA
2e0ec5b0e6 Remove trailing whitespaces from app (#31506).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18230 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:47:34 +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
143c359d90 Allows setting the private flag via mail keyword (#31324).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18150 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-09 22:30:29 +00:00
Go MAEDA
303576e22d Use safe navigation operator (#30457).
git-svn-id: http://svn.redmine.org/redmine/trunk@18069 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-20 04:56:09 +00:00
Go MAEDA
2a154205ed MailHandler.safe_receive does not output any error log (#30457).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-20 04:11:55 +00:00
Go MAEDA
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
606e75d12d Use #b shortcut instead of #force_encoding (#31059).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-20 01:36:44 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +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
3ce803e82b Parse author's name enclosed in parentheses in the From field when creating 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
2019-03-03 11:55:15 +00:00
Go MAEDA
77f35cb818 Option to parse HTML part of multipart (HTML) emails first (#30838).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17913 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-03 08:17:59 +00:00
Go MAEDA
b41c5c89d4 Mail handler does not ignore emails sent from emission email address if 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
2019-02-18 13:21:18 +00:00
Go MAEDA
5329ef3b82 Reverts r17862.
git-svn-id: http://svn.redmine.org/redmine/trunk@17878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-18 13:03:03 +00:00
Go MAEDA
b0b8978ff8 Fix: Mail handler does not ignore emails sent from emission email address if 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
2019-02-12 23:35:05 +00:00
Jean-Philippe Lang
e82e018938 Adding an issue note via email fails due to NoMethodError (#30455).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17817 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-19 10:59:45 +00:00
Go MAEDA
f743d2356f Fix: Attachments are added even if validation fails when updating an issue via email (#28576).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@17630 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-23 06:07:32 +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
Go MAEDA
d1c84dbdf9 Fix: Allow to set no_notification option when receiving emails via IMAP or POP3 (#29191).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17432 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-06 00:51:28 +00:00
Go MAEDA
a9bf2b763c Allow setting "Parent issue" attribute in emails (#27070).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17304 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-24 02:40:21 +00:00
Go MAEDA
6233ebd71e Fix indent (#27025).
Patch by Jan Schulz-Hofen.


git-svn-id: http://svn.redmine.org/redmine/trunk@17226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-03-03 04:32:16 +00:00
Go MAEDA
76f12c1316 Optional regex for filtering attachments on incoming emails (#27025).
Patch by Jan Schulz-Hofen.


git-svn-id: http://svn.redmine.org/redmine/trunk@17225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-03-03 04:29:54 +00:00
Jean-Philippe Lang
4e6b54e33e Empty email attachments are imported to Redmine, creating broken DB records (#27885).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@17147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-01-07 21:46:58 +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
8c03f2a6db allow unicode whitespace after mail handler body delimiters (#17718)
Contributed by Holger Just and Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16609 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-06 01:34:52 +00:00
Jean-Philippe Lang
99a714e39b Prevent clash with Rails 5.1 Mailer class.
git-svn-id: http://svn.redmine.org/redmine/trunk@16600 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:20:20 +00:00
Jean-Philippe Lang
a63908c5ed Emails with no text or html Content not handled properly (#25269, #25256).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-07 17:54:09 +00:00
Jean-Philippe Lang
a9a1f6205a Mail parts with empty content should be ignored (#25256).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16371 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-05 08:41:20 +00:00
Jean-Philippe Lang
f30462595e Optional Regex delimiters to truncate incoming emails (#5864).
git-svn-id: http://svn.redmine.org/redmine/trunk@16065 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-13 18:46:29 +00:00
Jean-Philippe Lang
ffdcb22ccb Ability to define a default assigned_to when receiving emails (#23020).
git-svn-id: http://svn.redmine.org/redmine/trunk@15547 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-18 07:07:41 +00:00
Jean-Philippe Lang
a6828512c0 Adds Issue#allowed_target_trackers (#7839).
git-svn-id: http://svn.redmine.org/redmine/trunk@15430 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-30 18:20:13 +00:00
Jean-Philippe Lang
ed50d42210 Replace Date.today with User.current.today (#22320).
Depending on the offset between a user's configured timezone and the server
timezone, Date.today may be more or less often wrong from the user's
perspective, leading to things like issues marked as overdue too early or too
late, or yesterday / tomorrow being displayed / selected where 'today' is
intended.

A test case illustrating the problem with Issue#overdue? is included

Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-07 10:42:22 +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
Toshi MARUYAMA
5414d86050 fix received mail text attachment does not keep original encoding on Ruby >= 2.1 (#21742)
Contributed by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@15184 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-04 06:56:06 +00:00
Jean-Philippe Lang
7dca1a180b Don't check permission to add watchers if no_permission_check option is set (#7017).
git-svn-id: http://svn.redmine.org/redmine/trunk@15093 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-22 20:05:53 +00:00
Jean-Philippe Lang
91da86a688 Add watchers from To and Cc fields in issue replies (#7017).
git-svn-id: http://svn.redmine.org/redmine/trunk@15092 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-22 20:01:05 +00:00
Jean-Philippe Lang
41c379fb78 Fixed that some mail handler log messages are not prepended with "MailHandler:" (#21226).
git-svn-id: http://svn.redmine.org/redmine/trunk@14880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-14 11:34:45 +00:00
Jean-Philippe Lang
0df7fa714b Allow a default version to be set on the command line for incoming emails (#7346).
git-svn-id: http://svn.redmine.org/redmine/trunk@14789 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-01 08:56:27 +00:00
Jean-Philippe Lang
3795c22730 Makes project selection by subaddress optional (#20732).
git-svn-id: http://svn.redmine.org/redmine/trunk@14690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-19 16:56:13 +00:00
Jean-Philippe Lang
3caa882286 MailHandler: Select project by subaddress (redmine+project@example.com) (#20732).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@14687 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-17 10:03:49 +00:00
Jean-Philippe Lang
1ccdf38fdd Mail Handler: add support for allow_override=all (#20543).
git-svn-id: http://svn.redmine.org/redmine/trunk@14681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-17 09:08:18 +00:00
Jean-Philippe Lang
af3c91d02a Mail handler: no attributes overridable by default (#20543).
git-svn-id: http://svn.redmine.org/redmine/trunk@14680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-17 08:00:16 +00:00
Jean-Philippe Lang
eac2974e71 Moved implementation to Principal.
git-svn-id: http://svn.redmine.org/redmine/trunk@14500 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-15 06:57:55 +00:00
Jean-Philippe Lang
b66358ac6c Fixed that #find_assignee_from_keyword may return a group with blank keyword (#20454).
git-svn-id: http://svn.redmine.org/redmine/trunk@14499 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-15 06:47:18 +00:00