[Esd-l] Stripping Attachments?

Paul Thomas paul at cuenet.com
Sat Jan 12 18:06:01 PST 2002


Howdy,

I'm trying to implement the STRIPPED_EXECUTABLE feature. In my
/etc/procmailrc, I put all the MANGLE_EXTENSIONS list in:

STRIPPED_EXECUTABLES="/etc/procmail/stripped".

Then in /etc/procmailrc, I put the following:

     :0
     * ^(To|Cc):.*some at address.com
     {
MANGLE_EXTENSIONS='html?|exe|com|cmd|bat|pif|sc[rt]|lnk|dll|ocx||doc|bmp|dot|xl[wt]|p[po]t|vb[se]?|hta|p[lm]|sh[bs]|hlp|chm|eml|ws[cfh]|html|ad[ep]|jse?|md[abew]|ms[ip]|reg|asd|cil|pps|asx|wm[szd]|vcf|nws|\{[-0-9a-f]+\}' 
     }

and omit the file extentions I want to not be stripped. In particular, I
don't want to strip .rtf files for some at address.com, so it is omitted from
the MANGLE_EXTENSIONS list. However when a .rtf file is sent to
some at address.com, it is getting stripped unless I remove that extention
from the STRIPPED_EXECUTABLES="/etc/procmail/stripped" list.

BTW, I have a separate /etc/procmailrc for some at address.com so
other addresses aren't bothered by STRIPPED_EXECUTABLES="/etc/procmail/stripped.

I thought for a file to be stripped, the extention must appear in 
the MANGLE_EXTENSIONS list.

Also, my other dumb question for the day is:

What happens if I list .html files to be stripped? And, what does
'html?' do?

Thanks,

--Paul

--
"Yesterday's the past and tomorrow's the future. Today is a gift - which
is why they call it the present."
-Bill Keane



More information about the esd-l mailing list