Hello! I have folders of archived E-mails saved to disk that I need to sort through. I would like to use JavaMail to create MIMEMessages from the saved mails, then get at the headers, recipient, contents and so on. The problem is that I don't know how to create MIMEMessages from an InputStream without having a valid Session and/or Folder, and that appears to require the URL of a valid E-mail server. Is it possible to create a Session that represents a set of locally stored E-mails, and not a live mail server, which I could then use to create my MIMEMessages? Alternately, can anyone recommend a simple way of getting at the MIME information (including attachments) in my files?
As always, any help would be very greatly appreciated. Thank you, Ed Beaty
Joined: Apr 27, 2005
I did some searching, and found a possible solution. It appears to generate a "null session" which does not require a live E-mail server to read mails from an input stream:
Comments? Is there a better/safer/more efficient way to do this? Thanks, Ed