Need a very simple script to read a pop3 mailbox and write out an xml file with data in all messages, after reading messages delete.
I also require the attachments to be saved in a unique folder created with the name of the message ID.
The full spec is a follows
Require a java program which will continously run to get incoming emails from our mail server
and output each one to an xml file. This process will connect to the mail boxes every 5 minutes.
The number of mailboxes to connect to will need to be expandable with each mailbox, username and password being defined in an
Output content to xml file, with each attachment being put into a folder thats created with the name of the message ID.
(or anything else unique to the email you can suggest)
<time>hh:mm:ss</time> - local time
<message>how are you</message>
<attachment>filename.ext</attachment> ...repeated for each attachment
We may need to add some of our own code to this program at a later date, so fully commented code would be needed and also written
in a way so that we can add to it easily.