1. Home
  2. Computing & Technology
  3. Python

Building a Whitelist for a Spam Filter

From Al Lukaszewski, for About.com

1 of 6

Why a Whitelist?

Training a spam filter can take a good deal of time and effort. One of the best ways to jumpstart the spam filter process is to have a whitelist of email recipients. There is no better source of non-spam email addresses than the recipients of your own send folder.

Using Python's mailbox module, you can cull out the recipients of all your past email. This guide was inspired by a script by Noah Spurrier and was adapted from a similar script in O'Reilly's Python Cookbook (prices).

Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Python Library
  5. Python Programming - Email Whitelist for Spam Filters - Building an Email Whitelist to Train Your Spam Filter

©2009 About.com, a part of The New York Times Company.

All rights reserved.