How to get a copy of the Received email using Java Mail API without deleting the message.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, April 23, 2002 09:28 AM

How to get a copy of the Received email using Java Mail API without deleting the message.

Re: How to get a copy of the Received email using Java Mail API without deleting the message.

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

Probably the following extract from the API can help you.


[...]
MimeMessage

public MimeMessage(MimeMessage source)
throws MessagingException

Constructs a new MimeMessage with content initialized from the source MimeMessage. The new message is independent of the original.

Note: The current implementation is rather inefficient, copying the data more times than strictly necessary.

Parameters:
source - the message to copy content from
Throws:
MessagingException -
Since:
JavaMail 1.2
[...]


Good Luck,
Dieter
About | Sitemap | Contact