spamc is a python module that provides fully compliant client side functionality of the spamassassin spamd protocol
It can be used with gevent and eventlet, is thread safe and supports streaming.
Install from PyPi
pip install spamc
Install from Githib
git clone https://github.com/akissa/spamc.git
cd spamc
python setup.py install
Examples are in the examples directory
$ ./examples/example1.py -h
Usage: example1.py [options]
Options:
-h, --help show this help message and exit
-s SERVER, --server=SERVER
The spamassassin spamd server to connect to
-p PORT, --port=PORT The spamassassin spamd server port to connect to
-u SOCKET_PATH, --unix-socket=SOCKET_PATH
The spamassassin spamd unix socket to connect to
-t, --tls Use TLS
-z, --use-zlib-compression
Use Zlib compression
-l COMPRESS_LEVEL, --zlib-compression-level=COMPRESS_LEVEL
Zlib compression level
-a USER, --user=USER Username of the user on whose behalfthis scan is being
performed
Module documentation is available on readthedocs.org
- Fork it (https://github.com/akissa/spamc/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All code is licensed under the AGPLv3+ License.