CFilter

CFilter is a generic (email or text) filter frontend.
Download

CFilter Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Peter A. Donis
  • Publisher web site:

CFilter Tags


CFilter Description

CFilter is a generic (email or text) filter frontend. CFilter is a generic (email or text) filter "front end" that does the following:-- Reads standard input (until EOF) and sends it through a socket to a specified host and port number (defaults to localhost:9999);-- Receives data back from the socket (until EOF) and writes it to standard output.Thus all the actual "filter" logic is in the daemon that is listeningon the specified port; that daemon can have arbitrarily complex stateand code, because it only loads once; this client program can stay verysmall and lightweight so it can load quickly. The use case that promptedthis was to implement complex e-mail filtering logic in Python withoutincurring the (unacceptably large for large e-mail downloads) overheadof starting up the Python interpreter for each individual message.Instead, the daemon listening on the filter port can be written in Pythonand just takes its data from this front end. (The SpamAssassin spam filteruses a similar technique, but I wanted to be able to implement my owncustom logic in Python rather than being limited to the scriptability ofa third-party tool.)Usage: cfilter CFilter, a generic filter front end. -b, --bufsize=BUFSIZE Use the specified buffer size -h, --host=HOST Use the specified host name -r, --port=PORT Use the specified port number -?, --help Give this help list --usage Give a short usage message -V, --version Print program versionMandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.


CFilter Related Software