I am running RT 3.4.4 on SuSE 10.0, with the default install.<br><br>The variable $MaxInlineBodydoes not seem to be respected in /opt/rt3/share/html/Ticket/Elements/ShowTransactionAttachments. <br><br>It looks like the variable "$size" is used to store the attachment size in bytes, then it is reused to store a "pretty string" describing the file size (eg. 2048k or 89b.) Then it is used again to compare the attachment size to the value of MaxInlineBody, which doesn't work since $size is no longer the size of the attachment in bytes.
<br><br>To fix this, I added a local variable named "$size_pretty" to store the "pretty string". This solved the problem. Hopefully, it will be useful to someone else!<br><br>Here's the diff for ShowTransactionAttachments:
<br><br>72c72<br><<br>---<br>>      my $size_pretty;<br>75c75<br><          $size = loc( "[_1]k", int( $size / 102.4 ) / 10 );<br>---<br>>          $size_pretty = loc( "[_1]k", int( $size / 
102.4 ) / 10 );<br>78c78<br><         $size = loc( "[_1]b", $size );<br>---<br>>         $size_pretty = loc( "[_1]b", $size );<br>84c84<br>< <%$message->ContentType%> <% $size %>
<br>---<br>> <%$message->ContentType%> <% $size_pretty %><br><br>_______________________________________<br><br>John Sloan<br><br>