[pmmail-list] Filter out HTML

James Moe pmmail-list@blueprintsoftwareworks.com
Wed, 17 Sep 2003 10:49:36 -0700 (MST)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 17 Sep 2003 09:50:03 -0500, Larry Alkoff wrote:

>
>Should I use a multipart filter for both?
>Are there any other types to filter out?
>
  Try this (of the "complex" variety):

(  header = "text/html"
 | header = "multipart/alternative"
 | header = "multipart/mixed"
 | header = "multipart/related"
)
&
!(message = "Content-Type: text/plain"
 | header = "a-good-guy.org"
 | --other desirable hosts--
)

  The second part is basically a whitelist.
  This filter captures about 95% of the html spam. There are a few spams that have an 
empty text/plain section that slip past.


- -- 
jimoe at sohnen-moe dot com
pgp/gpg public key: http://www.keyserver.net/en/
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0 OS/2 for non-commercial use
Comment: PGP 5.0 for OS/2
Charset: cp850

wj8DBQE/aJ6wsxxMki0foKoRAsauAJwKa/Xax485rwR02+0IYbbLpijgcACeOsg0
2cOU5cD3+wuDr2IToVf7wb0=
=eLLx
-----END PGP SIGNATURE-----
- pmmail-list - The PMMail Discussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com 
with the first line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------