can you strip attachments to a folder
gborders at balanceconsult.com
Mon Feb 11 16:20:36 GMT 2008
Kathryn Allan wrote:
> Hi all,
> Have had a request to do this and was wondering if it is even possible.
> Can I set mailscanner up so that any emails from a specific address -
> if they have an attachment, the attachment gets stripped and dumped in
> a specific folder?
I've used a pair of tools to extract attachments after delivery.
Use procmail and a create a recipe that pipes a copy of the delivered
mail to ripmime.
ripmime will extract the attachment to a specified folder. You can then
use a script/cron job to detect the presence of the newly created
attachment, and fire off your other program that needs it.
This email message and any document accompanying it may contain information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited.
NOTICE TO PERSONS SUBJECT TO UNITED STATES TAXATION:
DISCLOSURE UNDER TREASURY CIRCULAR 230:
Any tax advice included in this written or electronic communication was not intended or written to be used, and it cannot be used by the taxpayer, for the purpose of avoiding any penalties that may be imposed on the taxpayer by any governmental taxing authority or agency. This written or electronic communication does not represent legal advice. Persons in need of a legal opinion should seek competent counsel.
More information about the MailScanner