Patch #12338 » redmine_mail_handler.patch
app/models/mail_handler.rb 2012-11-09 17:56:48.000000000 +0000 | ||
---|---|---|
86 | 86 |
|
87 | 87 |
def dispatch |
88 | 88 |
headers = [email.in_reply_to, email.references].flatten.compact |
89 |
if headers.detect {|h| h.to_s =~ MESSAGE_ID_RE} |
|
89 |
if @@handler_options[:issue].has_key?(:number) |
|
90 |
receive_issue_reply(@@handler_options[:issue][:number]) |
|
91 |
elsif headers.detect {|h| h.to_s =~ MESSAGE_ID_RE} |
|
90 | 92 |
klass, object_id = $1, $2.to_i |
91 | 93 |
method_name = "receive_#{klass}_reply" |
92 | 94 |
if self.class.private_instance_methods.collect(&:to_s).include?(method_name) |