I need to automate a process whereby attachments are automatically downloaded from messages in a POP3 mailbox, and once complete, the messages get deleted. The attachments need to get output to some sort of folder which my PHP script can look at. I’m trying to avoid using PHP for download attachments, so I’m looking into using a linux program.
I’ve seen a program ‘mpop’ that could maybe do at least part of the job, but any suggestions would be appreciated.
How about Ruby and the mail gem?