Skip to main content

A customizable e-mail content filter.

Project description

EMailFilter is a customizable e-mail content filter written in Python. It consists of the following Python modules and shell scripts:

EMAILFILTER.PY – the core filter logic; it allows you to add as many Python filtering modules as you want, and will give each filtering module a chance to examine each e-mail message and (possibly) add ‘X-‘ headers to record its findings.

EMAILFILTERD.PY – the preferred mode of operation for EMailFilter; it wraps EMAILFILTER.PY in a daemon that listens on port 5590 and processes each e-mail message sent to it through that port.

EMAILFILTERC.PY – a command-line client program that takes its standard input, sends it through a socket to the daemon on port 5590, receives the processed data back, and writes it to standard output. This is not the preferred method of talking to the daemon; see the EMAILFILTERC shell script below.

EMAILFILTERDEFS.PY – common definitions for all the above modules.

EMAILFILTERD – shell script to invoke the daemon.

EMAILFILTERC – shell script to invoke the client; it can use EMAILFILTERC.PY above if necessary, but this is slow because it requires a new instance of the Python interpreter to be loaded for each e-mail message (the message comes in on standard input and the processed message is written to standard output). The preferred method is to use the CFilter program (available on SourceForge, see http://cfilter.sourceforge.net) as the client; this is done by invoking this script with the -c option.

Most e-mail clients can be set up to invoke any desired filter program, sending it messages on standard input and receiving processed messages on standard output; thus, to use EMailFilter, simply tell your e-mail client to invoke “emailfilterc -c” as the filter program (you can leave out the -c, but as above, filtering will be significantly slower).

Installation

To install EMailFilter, you can simply run

$ python setup.py install

at a shell prompt from the directory into which you unzipped the source tarball (the same directory that this README file is in). However, since there are some post-install scripts that should be run to fully set up EMailFilter, a shell script is also provided; just run

$ install-all

at a shell prompt in the source directory. After running the setup.py installation scripts, this shell script runs each of the post-install scripts in the scripts directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for emailfilter, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size emailfilter-0.1.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page