summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-02-18 13:03:03 +0000
committerGo MAEDA <maeda@farend.jp>2019-02-18 13:03:03 +0000
commit5329ef3b826d9cb291951abf1b602e48732dddce (patch)
tree512cd4a815924ed04eed02b3c855f30ff3921b8d /app/models/mail_handler.rb
parent979b0b6331db287179661594e22539331c1d8fb3 (diff)
downloadredmine-5329ef3b826d9cb291951abf1b602e48732dddce.tar.gz
redmine-5329ef3b826d9cb291951abf1b602e48732dddce.zip
Reverts r17862.
git-svn-id: http://svn.redmine.org/redmine/trunk@17878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mail_handler.rb')
-rwxr-xr-xapp/models/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 6586c52bb..9298e1b12 100755
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -91,7 +91,7 @@ class MailHandler < ActionMailer::Base
@handler_options = options
sender_email = email.from.to_a.first.to_s.strip
# Ignore emails received from the application emission address to avoid hell cycles
- if sender_email.casecmp(Setting.mail_from_address) == 0
+ if sender_email.casecmp(Setting.mail_from.to_s.strip) == 0
if logger
logger.info "MailHandler: ignoring email from Redmine emission address [#{sender_email}]"
end