Save Email Attachments
I am looking for a perl/php script to seperate email attachments from email, then save the attachment to a folder. Specs:
- Only save gif and jpeg attachments
- save the attachment(s) to a folder named the same as the first part of the email address (part before @ sign)
- dump the rest of the email address
- If user fodler does not exist, dump entire email
Does anyone know of an existing script that works with sendmail that will accomplish this? Can MIMEDefang do this? Anyone?
Thanks a lot