Open a saved MimeMessage
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lore_Ciccio
Posted On:   Monday, June 10, 2002 06:15 AM

I saved in the same file (in append) several MimeMessage, with the method writeTo( ), but now I can read (using the constructor that uses an inputstream) only the first MimeMessage!!!

In the API Docs it says : "The InputStream will be left positioned at the end of the data for the message"
If I use the constructor several times, for example in a for cicle, to read a certain number of Messages saved in the file, without closing the inputstream, it reads only the first!!!

Re: Open a saved MimeMessage

Posted By:   John_Zukowski  
Posted On:   Monday, July 1, 2002 08:42 AM

There are special providers for saving mail messages in an mbox.

Re: Open a saved MimeMessage

Posted By:   Anonymous  
Posted On:   Monday, June 10, 2002 06:25 AM

This is absolutly normal because each time you create a new input stream, it starts at the beginning of the file! Consider multiple files or serialization...
About | Sitemap | Contact