[Mimedefang] RECOMMENDED: Apply this patch to MIME::Tools

David F. Skoll dfs at roaringpenguin.com
Wed Mar 13 17:46:27 EST 2002


Hi,

Marco Berizzi found strange behaviour with attachments of type
"message/rfc822".  I recommend applying the following patch to
the "Parser.pm" file in MIME::Tools.  It prevents MIME::Tools from
misinterpreting a single-part message/rfc822 part as an embedded
multipart mail message.

Regards,

David.

--- Parser.pm.ORIG      Sun Nov 12 00:55:11 2000
+++ Parser.pm   Wed Mar 13 17:37:01 2002
@@ -998,6 +998,7 @@
        $self->process_multipart($in, $rdr, $ent);
     }
     elsif (("$type/$subtype" eq "message/rfc822") &&
+          $head->count('MIME-Version') > 0 &&
           $self->extract_nested_messages) {
        $self->debug("attempting to process a nested message");
        $self->process_message($in, $rdr, $ent);




More information about the MIMEDefang mailing list