]> source.dussan.org Git - redmine.git/commitdiff
use \A instead of ^ for RegExp (#16190)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 2 Jul 2014 16:13:33 +0000 (16:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 2 Jul 2014 16:13:33 +0000 (16:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13207 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index 2e25a294f1d1746d6293ce441bb857da561409f2..69e70d21d2a1a160a9a33e2ba413c3e9572d3cd2 100644 (file)
@@ -74,7 +74,7 @@ class MailHandler < ActionMailer::Base
   cattr_accessor :ignored_emails_headers
   @@ignored_emails_headers = {
     'X-Auto-Response-Suppress' => 'oof',
-    'Auto-Submitted' => /^auto-(replied|generated)/
+    'Auto-Submitted' => /\Aauto-(replied|generated)/
   }
 
   # Processes incoming emails