Subject: | text/plain is missed in attachments |
Date: | Wed, 29 Apr 2009 11:46:00 +0400 |
To: | bug-Email-MIME-Attachment-Stripper [...] rt.cpan.org |
From: | Dmitry Smirnov <divis1969 [...] gmail.com> |
Hi,
This module (version 1.313) is used by Bugzilla to import bugs from emails.
Unfortunately, I have a problem with the message sent from MS Outlook.
This Stripper seems to work incorrectly with the follоwing kind of
message: the mail that contains some text and another mail (or any
other attachment). Please see below is the message structure
What I see is that text/plain is not available neither in message
($stripper->message) not in attachments ($stripper->attachments).
In the message I see "\n" as body and no parts.
In the attachments I see text/html, multipart/alternative (with "\n"
as a payload) and message/rfc822 attachments.
Is it pissible to fix this?
------------------------------
X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by SERVER
id <01C9C7D6.89BE116C@SERVER>; Tue, 28 Apr 2009 11:54:20 +0400
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----_=_NextPart_001_01C9C7D6.89BE116C"
Content-class: urn:content-classes:message
Subject: SOME SUBJECT
Date: Tue, 28 Apr 2009 11:54:19 +0400
Message-ID: <7CB300F95A27094ABA3AE8D787E275F405F3A867@SERVER>
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Thread-Topic: SOME SUBJECT
Thread-Index: AcnH1olmZX4SEQHaTTSY2RYWyrbh+Q==
From: "somebody" <somebody@somewhere>
To: "someone" <someone@somewhere>
This is a multi-part message in MIME format.
------_=_NextPart_001_01C9C7D6.89BE116C
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C9C7D6.89BE116C"
------_=_NextPart_002_01C9C7D6.89BE116C
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
=F0=D2=C9=D7=C5=D4,
------_=_NextPart_002_01C9C7D6.89BE116C
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR></HEAD>
<BODY>
....
</BODY></HTML>
------_=_NextPart_002_01C9C7D6.89BE116C--
------_=_NextPart_001_01C9C7D6.89BE116C
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by SERVER
id <01C9C33F.5BA5EC11@SERVER>; Wed, 22 Apr 2009 15:42:04 +0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_003_01C9C33F.5BA5EC11"
Content-class: urn:content-classes:message
Subject: RE: SUBJECT2
Date: Wed, 22 Apr 2009 15:42:09 +0400
Message-ID: <7CB300F95A27094ABA3AE8D787E275F405EA389B@SERVER>
In-Reply-To: <7CB300F95A27094ABA3AE8D787E275F405EA3873@SERVER>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: SUBJECT2
Thread-Index: AcmbywuHLIjj7nqoRSKFba4FPN+rbwAIX++wAABAaOAAANVDYAAAsZjgAAA03WAJ0Te0sAAAjVhgAAA+a2AAAJLr0A==
References: <7CB300F95A27094ABA3AE8D787E275F405EA3839@SERVER>
<7CB300F95A27094ABA3AE8D787E275F405EA384C@SERVER>
<7CB300F95A27094ABA3AE8D787E275F405EA3873@SERVER>
From: "third" <third@somewhere>
To: "forth" <forth@somewhere>
This is a multi-part message in MIME format.
------_=_NextPart_003_01C9C33F.5BA5EC11
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
------_=_NextPart_003_01C9C33F.5BA5EC11
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<html>
</html>
------_=_NextPart_003_01C9C33F.5BA5EC11--
------_=_NextPart_001_01C9C7D6.89BE116C--