On Thu, 20 Jan 2005 16:14:12 -0600, Pettit, Paul
From: Google Kreme [mailto:gkreme(_at_)gmail(_dot_)com]
Sent: Thursday, January 20, 2005 2:04 PM
On Thu, 20 Jan 2005 10:08:04 -0600, Pettit, Paul
While that works fine I'd prefer to remove the file
entirely. I've tried
substituting an empty value and substituting all spaces
for the file
name, but the file is still attached and shows up as an
you need demime (or other simialr tools)
I've looked into demime and it seems like a nice tool but
a) there are
no pointers to how to impliment it via a procmail filter
and b) it doesn't strip the attachments it "flattens" them
No, it REMOVES all mime attchments and leaves a text only mesage.
" Demime has one specific purpose: It is designed to take e-mail that
is not plain text, and make it into plain text e-mail. The main area
that it is supposed to function in is the area of mailing list input,
but it also works out of people's maildrop or procmail filters to
strip attachments off of mailing list mail that they get. It also
unconditionally removes all attachments leaving plain text mail."
note the last sentence.
Ah, now I missed that part, thanks.
So would the following selectively "pick off" those emails that have bad
attachments (as defined by me):
- -e 's/^Subject:/Subject: **ATTACHMENT REMOVED**/'
Thanks for all the help, it's been very refreshing. :)
procmail mailing list Procmail homepage: http://www.procmail.org/