summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-10 00:54:28 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-10 00:54:28 +0000
commit7bb8ab5e24aee7f32d762c9adf4318c1a902d8e8 (patch)
treec471effa59960b3d282c91f3bd4faf0fa7ff9428 /app/models/mail_handler.rb
parent37b7578f0f5601ae7ef0ded29b12422ad00e9152 (diff)
downloadredmine-7bb8ab5e24aee7f32d762c9adf4318c1a902d8e8.tar.gz
redmine-7bb8ab5e24aee7f32d762c9adf4318c1a902d8e8.zip
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
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 44aed826f..2aaa8bbf0 100755
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -274,7 +274,7 @@ class MailHandler < ActionMailer::Base
add_attachments(reply)
reply
else
- logger&.info "MailHandler: ignoring reply from [#{sender_email}] to a locked topic"
+ logger&.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
end
end
end