I need a script written that will log into a gmail account via IMAP/POP3 and download both the attachments and text from the emails in the account.
Items can be stored in a flat file system.
For example, scripts can be in the folder /postcards/ and data will be saved to /postcards/data/
Attachment and Email body should have the same filename with differing extensions. If the attachment is named [url removed, login to view] then there should also be a [url removed, login to view] that contains the body of the email.
Shouldn't be too hard for those who have used PHPs IMAP functions before. I just need the script to run in the background via a cronjob to check the mailbox every 5min to see if a new mail has arrived.