[rt-users] Text Attachements within HTML mails
benoit plessis
plessis.benoit at gmail.com
Thu Nov 4 08:10:06 EDT 2010
2010/11/4 benoit plessis <plessis.benoit at gmail.com>:
> Hi,
>
> We are experiencing some inconvenient with RT 3.8.8 and text attachements.
>
> When a text only mail containing a text/plain attachment is replied
> upon everything is fine and the attachment is not shown
> in the reply message box, however, for text/html message the first
> attached text/plain file is used, instead of the inlined text/plain
> which is quite problematic when there is an 1Mb attached text file =>
> FF hang during a long time :(
Here is my current fix for this:
--- lib/RT/Transaction_Overlay.pm 2010-11-04 13:07:40.254934000 +0100
+++ local/lib/RT/Transaction_Overlay.pm 2010-11-04 13:02:06.572761000 +0100
@@ -415,6 +415,15 @@
elsif ( $Attachment->ContentType =~ '^multipart/' ) {
my $plain_parts = $Attachment->Children;
$plain_parts->ContentType( VALUE => $args{Type} );
+
+ my %args = (
+ VALUE => 'NULL',
+ OPERATOR => 'IS',
+ ENTRYAGGREGATOR => 'AND',
+ @_
+ );
+
+ $plain_parts->Limit ( %args, FIELD => 'Filename' );
$plain_parts->LimitNotEmpty;
# If we actully found a part, return its content
More information about the rt-users
mailing list