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