@@ -81,7 +81,7 class MailHandler < ActionMailer::Base | |||
|
81 | 81 | if headers.detect {|h| h.to_s =~ MESSAGE_ID_RE} |
|
82 | 82 | klass, object_id = $1, $2.to_i |
|
83 | 83 | method_name = "receive_#{klass}_reply" |
|
84 | if self.class.private_instance_methods.include?(method_name) | |
|
84 | if self.class.private_instance_methods.collect(&:to_s).include?(method_name) | |
|
85 | 85 | send method_name, object_id |
|
86 | 86 | else |
|
87 | 87 | # ignoring it |
@@ -120,7 +120,8 class MailHandler < ActionMailer::Base | |||
|
120 | 120 | if status && issue.new_statuses_allowed_to(user).include?(status) |
|
121 | 121 | issue.status = status |
|
122 | 122 | end |
|
123 |
issue.subject = email.subject.chomp |
|
|
123 | issue.subject = email.subject.chomp | |
|
124 | issue.subject = issue.subject.toutf8 if issue.subject.respond_to?(:toutf8) | |
|
124 | 125 | if issue.subject.blank? |
|
125 | 126 | issue.subject = '(no subject)' |
|
126 | 127 | end |
General Comments 0
You need to be logged in to leave comments.
Login now