Filtering email to a script

e.g. all email to is sent to decode.php


I need to grab certain email attachments(images) from incoming emails and save these attachments into a web-directory for later use.

I’ve looked at procmail but by itself it doesn’t seem to decode mime attachments - so is procmail+metamail the solution.

Any tips appreciated.


Please let me know if you found a solution to this.
I’ve looked at the imap_open function, but it is apparently not installed at Dreamhost. Maybe something in PEAR?

You can always compile your own PHP and include these functions if you desire. See the Dreamhost Wiki for how to install/configure your own version of PHP.