parameters: (self, message, message_dict, routes)
return_statement: return super(MailThread, self)._message_route_process(message, message_dict, routes)
docstring: Override to update the parent mailing traces. The parent is found
          by using the References header of the incoming message and looking for
          matching message_id in mailing.trace.
docstring_summary: Override to update the parent mailing traces. The parent is found
          by using the References header of the incoming message and looking for
          matching message_id in mailing.trace.
docstring_tokens: Override to update the parent mailing traces . The parent is found by using the References header of the incoming message and looking for matching message_id in mailing . trace .
function: def _message_route_process(self, message, message_dict, routes):
          """ Override to update the parent mailing traces. The parent is found
          by using the References header of the incoming message and looking for
          matching message_id in mailing.trace. """
          if routes:
              # even if 'reply_to' in ref (cfr mail/mail_thread) that indicates a new thread redirection
              # (aka bypass alias configuration in gateway) consider it as a reply for statistics purpose
              thread_references = message_dict['references'] or message_dict['in_reply_to']
              msg_references = tools.mail_header_msgid_re.findall(thread_references)
              if msg_references:
                  self.env['mailing.trace'].set_opened(domain=[('message_id', 'in', msg_references)])
                  self.env['mailing.trace'].set_replied(domain=[('message_id', 'in', msg_references)])
          return super(MailThread, self)._message_route_process(message, message_dict, routes)
function_tokens: def _message_route_process ( self , message , message_dict , routes ) : if routes : # even if 'reply_to' in ref (cfr mail/mail_thread) that indicates a new thread redirection # (aka bypass alias configuration in gateway) consider it as a reply for statistics purpose thread_references = message_dict [ 'references' ] or message_dict [ 'in_reply_to' ] msg_references = tools . mail_header_msgid_re . findall ( thread_references ) if msg_references : self . env [ 'mailing.trace' ] . set_opened ( domain = [ ( 'message_id' , 'in' , msg_references ) ] ) self . env [ 'mailing.trace' ] . set_replied ( domain = [ ( 'message_id' , 'in' , msg_references ) ] ) return super ( MailThread , self ) . _message_route_process ( message , message_dict , routes )