POP3 Mime Message problem

Hello,

I'm working on a program where I want to be able to access my companies noreply mail server and read in the messages that are bounced back from customers who either could not receive them or have spam blocker blocking them for some reason to flag there accounts so that we can prompt them on this problem. The problem I am having is that when I read in the messages using the RETR command and I'm getting the message back as a String array and I want to convert them to MimeMessage or SimpleMailMessage objects so that I can get the content that I need such as the user e-mail address. I don't see how I would be able to set the appropriate fields though because the messages come back as string arrays and there are a variety of different e-mails so I can't write parsing code based on the headers unless I want to have a bunch of cases. Any help or suggestions would be greatly appreciated.

[916 byte] By [rcraina] at [2007-11-26 17:58:24]
# 1

Are you using JavaMail to access the POP3 server? If so, the message

most certainly does not come back as a string array. The message

comes back as a MimeMessage.

And of course, you don't need to know about or use the RETR command

yourself. JavaMail does that for you.

How are you accessing the server?

bshannona at 2007-7-9 5:11:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Yeah, I was being a n00b, I was kinda learning by example from another program that I think was written before the JavaMail API. I wrote it in JavaMail in like 10 minutes and got the results I wanted. Thanks for the help.
rcraina at 2007-7-9 5:11:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...