Reading .msg files using JavaMailAPI

Hi,I have all my emails in a .msg file under a backup directory. How can i read it using JavaMailAPI?. Thanks.
[131 byte] By [MAYAa] at [2007-11-27 7:37:36]
# 1
Sorry, I don't use Outlook. What's the format of a .msg file?Is it in standard MIME message format, or is it in someMicrosoft proprietary format?If it's a standard MIME format message, you can read itusing the MimeMessage constructor that takes an
bshannona at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
It's in normal RFCFormat only. But it contains more than one message(say 'n' messages). If i use MIMEMessage constructor how it will read?. Only the first message. If set delete flag will that first msg only get deleted?. Please clarify me.Thanks.
MAYAa at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Sorry i can't set the delete flag. But in such a case how i can read a single file with 'n' no. of messages.
MAYAa at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

I tried. In my case my .msg file contains 3 messages appended in RFC822 format. And i created input stream for that file and created mimemessage. But reads the first message in that file. And i can't able to delete that part for the first message. So it's again and agin reading the first message.

Is there any other solution?.

Thanks.

MAYAa at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
Exactly what i need is, is there any way to read MBOX format files in local directories using JavaMailAPI(like reading EML files by converting inputstream and assigning to MimeMessage).This is what i need?. Please help me.
MAYAa at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
Assuming the file format is exactly the UNIX mbox format, you canfind local store providers in the JavaMail Third Party Products page. http://java.sun.com/products/javamail/Third_Party.html
bshannona at 2007-7-12 19:18:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...