[rt-devel] [PATCH] Wrong detection of multipart.
Ruslan U. Zakirov
cubic at acronis.ru
Mon Aug 25 12:02:48 EDT 2003
Hello.
According to MIME-Tools documentation, citation:
"As a special case, |message/*| is currently ambiguous: depending on the
parser, a |message/*| might be treated as a singlepart, with a
MIME::Body and no parts. Use bodyhandle() as the final arbiter."
But in Attachment_Overlay.pm RT uses parts() call and then die on
->bodyhandle()->as_string() call.
Attached patch fix it.
Good luck. Ruslan.
-------------- next part --------------
--- rt3_b/lib/RT/Attachment_Overlay.pm 2003-07-31 12:14:40.000000000 +0400
+++ rt3/lib/RT/Attachment_Overlay.pm 2003-08-25 19:42:21.000000000 +0400
@@ -133,7 +133,7 @@
=~ /^.*\bfilename="(.*)"$/ ? $1 : ''
};
- if ( $Attachment->parts ) {
+ if (not defined $Attachment->bodyhandle ) {
$id = $self->SUPER::Create(
TransactionId => $args{'TransactionId'},
Parent => 0,
More information about the Rt-devel
mailing list