Discussion:
problems with multipart
Oleg Sukhodolsky
2009-02-24 05:08:53 UTC
Permalink
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".
Bill Shannon
2009-02-24 06:56:11 UTC
Permalink
No magic property, sorry. Find the person who wrote the program that
created such a broken message and tell them to fix their program!

Are you sure it isn't the anti-virus software that's corrupting the
message?
Post by Oleg Sukhodolsky
Hi,
MIME-Version: 1.0
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.
===========================================================================
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
===========================================================================
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".
Oleg Sukhodolsky
2009-02-24 07:47:05 UTC
Permalink
No magic property, sorry.  Find the person who wrote the program that
created such a broken message and tell them to fix their program!
Will try to report this.
Are you sure it isn't the anti-virus software that's corrupting the
message?
Most likely it is AVG email server (www.avg.com) part of anti-virus
protection product which is installed on sender's side.

Oleg.
Post by Oleg Sukhodolsky
Hi,
MIME-Version: 1.0
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.
===========================================================================
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email
to
===========================================================================
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".
Keeblebrox
2009-04-02 17:54:16 UTC
Permalink
Post by Oleg Sukhodolsky
Post by Bill Shannon
Are you sure it isn't the anti-virus software that's corrupting the
message?
Most likely it is AVG email server (www.avg.com) part of anti-virus
protection product which is installed on sender's side.
I have a similar problem to the original poster's. Disabling AVG's email
scanner on the recipient's side clears up the contents of the message,
however. This means that the issue is with the recipient's AVG installation,
not the sender's.

If they haven't been, AVG should be notified of the issue so they can fix
their email scanner.

Brian
--
View this message in context: http://www.nabble.com/problems-with-multipart-tp22176067p22853212.html
Sent from the Javamail mailing list archive at Nabble.com.

===========================================================================
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".
Loading...