procmail
[Top] [All Lists]

Re: Filtering out unwanted mime attachments

1997-10-14 22:59:08
On Tue, 14 Oct 1997 18:50:24 -0400 (EDT),
"Mike A. Harris" <mharris(_at_)blackwidow(_dot_)saultc(_dot_)on(_dot_)ca> wrote:
I just want a generic filter that will allow me to delete
messages based on the existance of CERTAIN MIME attachment types.
I'm sure it's really simple, but I didn't want to waste time
trying to reinvent the wheel.

Since this should mostly delete too little rather than too much, it's
hopefully not very dangerous. 

    :0:
    * ^Content-Type:[   ]*multipart/(mixed|alternative);($|[    ])*\
                boundary="?\/[^;"]+
    * $ B ?? ^--$\MATCH\$([-a-z]+:.*)*Content-type:[    ]*text/html
    htmlspam

Not sure if this is what you're looking for. I believe someone
mentioned some other type/subtype than text/html being used by some
programs. 

The really malicious ones are those that don't properly tell you how
they have encrypted the message, or send HTML straight in the body
(i.e. have Content-type: text/html in the regular message header, but
that should be easy to catch).

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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