Project

General

Profile

Patch #17705 » better_incoming_email_issue_id_recognition.patch

Felix Schäfer, 2014-08-18 09:35

View differences:

app/models/mail_handler.rb
145 145
  private
146 146

  
147 147
  MESSAGE_ID_RE = %r{^<?redmine\.([a-z0-9_]+)\-(\d+)\.\d+(\.[a-f0-9]+)?@}
148
  ISSUE_REPLY_SUBJECT_RE = %r{\[[^\]]*#(\d+)\]}
148
  ISSUE_REPLY_SUBJECT_RE = %r{\[(?:[^\]]*\s+)?#(\d+)\]}
149 149
  MESSAGE_REPLY_SUBJECT_RE = %r{\[[^\]]*msg(\d+)\]}
150 150

  
151 151
  def dispatch
(1-1/2)