How can i remove headers in JavaMail?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rajesh_m
Posted On:   Monday, January 21, 2002 03:24 AM

How can i remove headers in JavaMail?

Re: How can i remove headers in JavaMail?

Posted By:   Dieter_Wimberger  
Posted On:   Thursday, April 25, 2002 04:53 AM

The MimeMessage has a method called
removeHeader(String name)
This will remove all headers with a given name.


Note that the folder the message is in will have to be opened READ_WRITE at the point of modification.


Probably you will want to make a copy and work on the copy
MimeMessage(MimeMessage source)
About | Sitemap | Contact