procmail
[Top] [All Lists]

simple mime security filter

1998-08-11 09:49:52
i looked at various versions of solutions to this problem and found them
all too complicated.  so i wrote the following /etc/procmailrc file.  the
basic theory is to just rewrite the mime headers to be disabled whenever
something fishy comes through.  i defined fishy to be 80 chars or more in
any mime header or any wrapped mime header in the body of the message (to
avoid trying to figure out the length of a wrapped line).  am i missing
any other cases that people have seen?

DROPPRIVS=yes

:0fw
* HB ?? 9876543210^0
^Content-[^:]*:................................................................................
* B ?? 9876543210^0 ^Content-[^:]*:[    ]*\/.*(^[       ].*)+
| /bin/sed 's/^Content-/X-Content-/'


<Prev in Thread] Current Thread [Next in Thread>