Using Procmail to *modify* MIME Attachments
Posted on 2006-07-21
I want to use procmail to MODIFY an incoming MIME attachment. Specifically, I want to rewrite .ics attachments from Apple iCal so they can be read by Microsoft Outlook.
I can set up the procmail recipes to detect the matching email, but I haven't been able to find examples of how I can MODIFY attachments (detach, modify, re-attach), so the resulting MIME email is still valid. Because the content is encoded, I don't want to process the raw MIME data, but want to use some MIME scripts to process the attachments.
Does anyone have examples doing this kind of procmail-based transcoding of attachments? I've heard of people deleting attachments, but I actually want to modify them.