]> source.dussan.org Git - redmine.git/commitdiff
Allow [#id] as subject to reply by email (#3653).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2009 22:30:02 +0000 (22:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2009 22:30:02 +0000 (22:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3031 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index 23a51d83a001d6dabc8853ae65c1f7af83f28ed5..cda556f8e196d0d93eaea62ea7d8a187acbf6e74 100644 (file)
@@ -79,8 +79,8 @@ class MailHandler < ActionMailer::Base
   private
 
   MESSAGE_ID_RE = %r{^<redmine\.([a-z0-9_]+)\-(\d+)\.\d+@}
-  ISSUE_REPLY_SUBJECT_RE = %r{\[[^\]]+#(\d+)\]}
-  MESSAGE_REPLY_SUBJECT_RE = %r{\[[^\]]+msg(\d+)\]}
+  ISSUE_REPLY_SUBJECT_RE = %r{\[[^\]]*#(\d+)\]}
+  MESSAGE_REPLY_SUBJECT_RE = %r{\[[^\]]*msg(\d+)\]}
   
   def dispatch
     headers = [email.in_reply_to, email.references].flatten.compact