Reading the email body can be accomplished by parsing the binary data into a MimeMessage using the java mail API. With that same API you can use the Multipart and Part classes to loop the various parts of the message and extract attachments. -Rogier
On Nov 24, 2007 2:34 AM, Thibaut <[EMAIL PROTECTED]> wrote: > Hi > > I would like to store incoming emails to a dbfile repository and read > them from a java program. > > I have no problem to store emails in a mysql neither to read the headers > in mysql. But I can't figure out how to read the email body. > > How do you read the email body ? > There is no reference to the file in the database records. > Second question: which java api can I use to read the file and extract > content and attach file ? > > Regards > T. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -Rogier Doekes
