You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by thilina Gunarathne <cs...@gmail.com> on 2005/02/19 10:08:41 UTC

How to remove the Message-ID Headder from a Mime Message generated from java mail

Hi all,
I'm working on a mtom+xop prototype for axis. I'm focusing on to the axis 2. 
I used the Java mail class to generate the Mime Messages for MTOM.
When a MIME message is created with <<Java Mail>> it includes a
"message-id" header to it. This header should be removed to for MTOM
to function correctly. This header cannot be removed using
removeHeader method in MimeMessage class. Pls share if anybody has an
idea about how to remove that header.

I've attched a part of the MimeMessage generated. I want to remove the
top most header.

Thanks in Advance..
rgds,

Thilina 
(Mora- Cse)


Message-ID: <31...@sandhaya>
MIME-Version: 1.0
Content-Type: multipart/Related; 
	boundary="----=_Part_0_27978063.1108853023349"

------=_Part_0_27978063.1108853023349
Content-Type: application/xop+xml
Content-Transfer-Encoding: 8bit
Content-ID: <http://example.org/my.hsh>

[axis2] How to remove the Message-ID Headder from a Mime Message generated from java mail

Posted by thilina Gunarathne <cs...@gmail.com>.
Hi all,
I'm working on a mtom+xop prototype for axis. I'm focusing on to the axis 2.
I used the Java mail class to generate the Mime Messages for MTOM.
When a MIME message is created with <<Java Mail>> it includes a
"message-id" header to it. This header should be removed to for MTOM
to function correctly. This header cannot be removed using
removeHeader method in MimeMessage class. Pls share if anybody has an
idea about how to remove that header.

I've attched a part of the MimeMessage generated. I want to remove the
top most header.

Thanks in Advance..
rgds,

Thilina
(Mora- Cse)

Message-ID: <31...@sandhaya>
MIME-Version: 1.0
Content-Type: multipart/Related;
       boundary="----=_Part_0_27978063.1108853023349"

------=_Part_0_27978063.1108853023349
Content-Type: application/xop+xml
Content-Transfer-Encoding: 8bit
Content-ID: <http://example.org/my.hsh>