[Rt-commit] r9499 - rtir/branches/2.3-EXPERIMENTAL/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Mon Oct 29 22:36:41 EDT 2007


Author: ruz
Date: Mon Oct 29 22:36:41 2007
New Revision: 9499

Modified:
   rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm

Log:
* MIME tools returns not chomped value

Modified: rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm	Mon Oct 29 22:36:41 2007
@@ -505,10 +505,12 @@
         my $value;
         if ( $args{'MIMEObj'} ) {
             my $tmp = $args{'MIMEObj'}->head->get('X-RT-Mail-Extension');
+            chomp $tmp;
             if ( $tmp && !grep lc $_->Name eq lc $tmp, @{ $cf->Values->ItemsArrayRef } ) {
                 $tmp = undef;
             }
             $value = $tmp;
+            $RT::Logger->debug("Found Constituency '$tmp' in email") if $tmp;
         }
         $value ||= RT->Config->Get('_RTIR_Constituency_default');
         return unless $value;


More information about the Rt-commit mailing list