I am looking for a PHP solution that would connect to a POP3/IMAP server, retrieve mail messages, parse the mail messages (incl. attachments), store attachments to the filesystem, then store the "email" to a MySQL database.
I've gotten as far as connecting to a POP3 server and displaying the messages, but I am having a difficult time wrapping my brain around the next steps.
If anyone could provide advise, or point me in the correct direction...