Creating own mbox format file

Hi all,

I know we can use JavaMailAPI to read mails by using POP3 server. POP3 able to read only files in mbox format. Now i want to create my own file in mbox format and read it with JavaMailAPI. How can i create my own file( with some example mailid's, headers, and attachments) in mbox format?. Do u have any idea?. Plz, give a solution.

thanks,

MAYA

[379 byte] By [MAYAa] at [2007-10-3 7:17:09]
# 1

If you want to create a file that contains a single message in mbox format,

create the message as a MimeMessage and use the writeTo method to write

it to the file. All you'll need to do is first write a UNIX-style "From" line before

the message.

If you want to create a file that contains a collection of messages, you'll want

an mbox provider for JavaMail. You can find references to several such

providers on the JavaMail Third Party Products download page.

bshannona at 2007-7-15 2:14:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...