[Rt-commit] r4086 - in rt/branches/3.4-RELEASE: . etc lib/RT/Interface

alexmv at bestpractical.com alexmv at bestpractical.com
Mon Nov 14 16:49:34 EST 2005


Author: alexmv
Date: Mon Nov 14 16:49:33 2005
New Revision: 4086

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/etc/RT_Config.pm.in
   rt/branches/3.4-RELEASE/lib/RT/Interface/Email.pm
Log:
 r7165 at zoq-fot-pik:  chmrr | 2005-11-14 16:49:07 -0500
 RT-Ticket: 7131
 RT-Status: resolved
 RT-Update: correspond
  * The $RT::rtname regex should be case insensitive for matching
    subjects; thanks to Phil Smith III <psmith at levanta.com> for the
    catch


Modified: rt/branches/3.4-RELEASE/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.4-RELEASE/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.4-RELEASE/etc/RT_Config.pm.in	Mon Nov 14 16:49:33 2005
@@ -35,16 +35,16 @@
 # token matching and that you should use only "non-capturing" parenthesis
 # grouping. For example:
 #
-# 	Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/ );
+# 	Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/i );
 #
 # and NOT
 # 
-# 	Set($EmailSubjectTagRegex, qr/(example.com|example.org)/ );
+# 	Set($EmailSubjectTagRegex, qr/(example.com|example.org)/i );
 #
 # This setting would make RT behave exactly as it does without the 
 # setting enabled.
 #
-# Set($EmailSubjectTagRegex, qr/\Q$rtname\E/ );
+# Set($EmailSubjectTagRegex, qr/\Q$rtname\E/i );
 
 
 

Modified: rt/branches/3.4-RELEASE/lib/RT/Interface/Email.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Interface/Email.pm	(original)
+++ rt/branches/3.4-RELEASE/lib/RT/Interface/Email.pm	Mon Nov 14 16:49:33 2005
@@ -448,7 +448,7 @@
     my $Subject = shift;
     my $id;
 
-    my $test_name = $RT::EmailSubjectTagRegex || qr/\Q$RT::rtname\E/;
+    my $test_name = $RT::EmailSubjectTagRegex || qr/\Q$RT::rtname\E/i;
 
     if ( $Subject =~ s/\[$test_name\s+\#(\d+)\s*\]//i ) {
         my $id = $1;


More information about the Rt-commit mailing list