diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 23a51d83a001d6dabc8853ae65c1f7af83f28ed5..cda556f8e196d0d93eaea62ea7d8a187acbf6e74 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -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