|
From: Richard J. <ric...@op...> - 2004-03-24 22:34:58
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 25 Mar 2004 09:08, Parker, Eddie wrote:
> Here's the e-mail I sent (Enclosed: "FW Image in message Test.msg"),
> here's the response I received (Enclosed: "Failed issue tracker
> submission.msg").
>
> It has text parts, and an image part. But it doesn't like it?
The code that pulls the message apart to find the text/plain has needed som=
e=20
attention for a while, as sometimes (as in this case) it doesn't find the=20
text/plain.
Your message's structure was:
Content-Type: multipart/related; type=3D"multipart/alternative"
Content-Type: multipart/alternative;
Content-Type: text/plain
Content-Type: text/html
Content-Type: image/jpeg
Unfortunately, the current email parser doesn't delve deeply enough into th=
e=20
message to find that text/plain. We do if the top-level Content-Type is=20
"multipart/mixed" ... I guess somewhere along the track Outlook switch from=
=20
mixed to related (as this used to work :)
I guess the simple fix is to change the tests in mailgw to have it start=20
with::
if content_type[:10] =3D=3D 'multipart/':
and then remove the redundant::
elif content_type[:10] =3D=3D 'multipart/':
from under that first "if" block.
Richard
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAYg0OrGisBEHG6TARAv3KAJ4kLQlyG7LhDBkFQtm5FRbjaWeE/QCeN8ay
U27Xp/cVtGcYdVbb8Ezc7Vk=3D
=3Dmb70
=2D----END PGP SIGNATURE-----
|