中文名称:蟒蛇斯帕马萨斯垃圾邮件客户端图书馆
spamc的Python项目详细描述
python spamassassin spamc客户端库
spamc是一个python模块,它提供完全兼容的客户端 spamassassin的功能 spamd protocol
安装
从pypi安装
pip install spamc
从githib安装
git clone https://github.com/akissa/spamc.git cd spamc python setup.py install
用法
例如 examples 目录
$ ./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
模块文档位于 readthedocs.org
贡献
- 叉它(https://github.com/akissa/spamc/fork)
- 创建功能分支(git checkout -bmy-new-feature)
- 提交更改(git commit -am 'Add some feature')
- 推到分支(git push origin my-new-feature)
- 创建新的拉取请求
许可证
所有代码都是根据AGPLv3+ License授权的。