[Rt-devel] Problem/Bug in mail with RT 3.6.6rc2

Jesse Vincent jesse at bestpractical.com
Tue Jan 15 10:21:31 EST 2008


Sven,

Can you try the following patch to rc2? I'm about to release rc3 with
the same change. It fixes the issue you reported here for me.


jesse at pinglin:~/svk/rt-3.6$ svk diff
=== lib/RT/Action/SendEmail.pm
==================================================================
--- lib/RT/Action/SendEmail.pm  (revision 74547)
+++ lib/RT/Action/SendEmail.pm  (local)
@@ -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-devel mailing list