[rt-users] Thumbnails from attachments?

Yan Seiner yan at seiner.com
Tue Jun 14 14:45:53 EDT 2011


HAH!


This one-line patch does what I need:


--- ./share/html/Ticket/Elements/ShowTransactionAttachments     2011-04-20
10:22:32.177315771 -0700
+++ local/html/Ticket/Elements/ShowTransactionAttachments       2011-06-14
11:37:22.166621835 -0700
@@ -225,7 +225,7 @@

     # if it's an image, show it as an image
     elsif ( RT->Config->Get('ShowTransactionImages') and
$message->ContentType =~ /^image\//i ) {
-        if ( $disposition ne 'inline' ) {
+      if ( $disposition ne 'inline' and
!RT->Config->Get('ShowNotInlineImages')) {
             $m->out('<p>'. loc( 'Message body is not shown because sender
requested not to inline it.' ) .'</p>');
             return;
         }

Along with a setting in RT_SiteConfig.pm:

Set($ShowNotInlineImages, 1);



--Yan



-- 
My daughter is racing a triathlon to raise money for her swim club.  Want
to help?

http://akari.seiner.com





More information about the rt-users mailing list