Oleg Sukhodolsky
2009-02-24 05:08:53 UTC
Hi,
recently I've got "bad" mail with the following content:
From: ***@somemail.com
MIME-Version: 1.0
To: oleg-***@yandex.ru
Subject: problems
Content-Type: multipart/mixed; boundary="=======AVGMAIL-499EAA7C0000======="
--=======AVGMAIL-499EAA7C0000=======
Content-Type: text/plain; charset=ascii; format=flowed
some text
--=======AVGMAIL-499EAA7C0000=======
Content-Type: multipart/alternative;
boundary="=======AVGMAIL-499EAA7C0000======="
--=======AVGMAIL-499EAA7C0000=======
Content-Type: text/plain; x-avg=cert; charset=windows-1251
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Description: "AVG certification"
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.1/1962 - Release Date: 02/20/09 07=
:26:00
--=======AVGMAIL-499EAA7C0000=======--
--=======AVGMAIL-499EAA7C0000=======--
As you can see, it uses the same boundary for outer multipart/mixed
and inner multipart/alternative.
AFAIK this is illegal, and javamail doesn't work well with such mail
(I'm using latest snapshot of 1.4.2).
But it would be nice to be able to read it, so I wonder if there is
some magic property which allows
javamail to handle such mail.
With best regards, Oleg.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
recently I've got "bad" mail with the following content:
From: ***@somemail.com
MIME-Version: 1.0
To: oleg-***@yandex.ru
Subject: problems
Content-Type: multipart/mixed; boundary="=======AVGMAIL-499EAA7C0000======="
--=======AVGMAIL-499EAA7C0000=======
Content-Type: text/plain; charset=ascii; format=flowed
some text
--=======AVGMAIL-499EAA7C0000=======
Content-Type: multipart/alternative;
boundary="=======AVGMAIL-499EAA7C0000======="
--=======AVGMAIL-499EAA7C0000=======
Content-Type: text/plain; x-avg=cert; charset=windows-1251
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Description: "AVG certification"
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.1/1962 - Release Date: 02/20/09 07=
:26:00
--=======AVGMAIL-499EAA7C0000=======--
--=======AVGMAIL-499EAA7C0000=======--
As you can see, it uses the same boundary for outer multipart/mixed
and inner multipart/alternative.
AFAIK this is illegal, and javamail doesn't work well with such mail
(I'm using latest snapshot of 1.4.2).
But it would be nice to be able to read it, so I wonder if there is
some magic property which allows
javamail to handle such mail.
With best regards, Oleg.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".