Hopefully this is the right place for this thread, I've been searching for a solution to save attached image files sent by email, onto a linux server.
The reasoning behind this is as I'm getting older I'm finding I take photos for blog posts and forgotten I've done so. I want to take the photo > name it > email it > save it on the server so writers have it available for posts.
The Goal: Save MIME single email attachments to disk
Would apply to a specific email address intended for this purpose.
I send email with image attached and email received on server.
Attachment is removed from email and saved to a directory.
Example: Attached file img0001.jpg saved as... /home/public_html/images/img0001.jpg
OR if Possible
Attachment is removed from email and saved to a directory using email subject line as filename.
Example: Attached file img0001.jpg saved as red-widget.jpg in... /home/public_html/images
If file name already exists, new file gets appended -01.jpg or other.
Email gets deleted.
In searching WebmasterWorld and elsewhere, I've come across things like metamail, ripMIME and a PERL script, and I figure a script has to be written or modified to make it all happen.
Any tips on how best to accomplish this are appreciated.