[Rt-commit] r10351 - in rt/branches/3.6-RELEASE: .

jesse at bestpractical.com jesse at bestpractical.com
Tue Jan 15 10:18:30 EST 2008


Author: jesse
Date: Tue Jan 15 10:18:19 2008
New Revision: 10351

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm

Log:
 r75056 at pinglin:  jesse | 2008-01-15 10:17:55 -0500
 * Fixed an issue where RT would flub the content-type on mail messages containing non-ascii characters 
   (Bug introduced after 3.6.5 and reported by Sven Sternberger)


Modified: rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm	(original)
+++ rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm	Tue Jan 15 10:18:19 2008
@@ -174,8 +174,11 @@
             push @parts, $part->parts;
         }
         else {
-            $part->head->mime_attr( "Content-Type" => 'text/plain' )
-                unless RT::I18N::IsTextualContentType($part->mime_type);
+            if ( RT::I18N::IsTextualContentType( $part->mime_type ) ) {
+                $part->head->mime_attr( "Content-Type" => $part->mime_type )
+            } else {
+                $part->head->mime_attr( "Content-Type" => 'text/plain' );
+            }
             $part->head->mime_attr( "Content-Type.charset" => 'utf-8' );
         }
     }


More information about the Rt-commit mailing list