JavaMail Message Cloning
1 posts in topic
Flat View  Flat View

Posted By:   Joey_Bernsen
Posted On:   Sunday, January 6, 2002 09:01 AM

I need to clone a JavaMail message (actually it's a MimeMessage).

I can't use...

Message newOne = oldOne;

...because it retains all references to the original.

I need the rules (or even sample code) for cloning oldOne to make newOne so that it is a brand new, independent copy of the original!

Any ideas?

Re: JavaMail Message Cloning

Posted By:   John_Zukowski  
Posted On:   Sunday, January 6, 2002 11:56 AM

Just get its content and create a new message from it. THis is already shown here.
About | Sitemap | Contact