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.
If its just a matter of parsing local email and extracting the attachments, you can probably do this with any of the major scripting languages. It looks to me like the email package in the Python standard library can do it for a start. Write a script, call it with a cron job.
You may be able to do it using the nmh command line email tools. I am not familiar with them, but the functionality to extract attachments exists.