I need a simple PHP script, that I'm going to set up running every 10-15 minutes.
It needs to:
1) Connect to a POP3 account on localhost with the PHP IMAP extension.
2) Input all e-mail information to a MySQL database.
3) Mark the inputted e-mails as "read".
It needs to work even if e-mails in the mailbox is deleted from other side. You can't use message_id from the mail server, since this is not unique.