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)