mailbot:在接收邮件时执行回调
mailbot的Python项目详细描述
mailbot:注册要在邮件接收时执行的回调。
- 作者:mathieu agopian和contributors
- 许可证:BSD
- 兼容性:Python2.7和Python3.3
- 项目URL:https://github.com/magopian/mailbot
- 文档:http://mailbot.rtfd.org/
黑客攻击
设置您的环境:
git clone https://github.com/magopian/mailbot.git cd mailbot
使用Tox进行破解并运行测试 在所有受支持的python版本上:
make test
还有一个实时测试套件,您可以使用以下命令运行:
make livetest
请注意,要运行实时测试,您需要创建 livetest_settings.py包含以下内容的文件:
# mandatory HOST = 'your host here' USERNAME = 'your username here' PASSWORD = 'your password here' # optional # check http://imapclient.readthedocs.org/en/latest/#imapclient.IMAPClient) PORT = 143 # port number, usually 143 or 993 if ssl is enabled USE_UID = True SSL = False STREAM = False
为了方便起见,您可以复制提供的示例,并对其进行修改:
$ cp livetest_settings.py.sample livetest_settings.py
更改日志
0.3(2013-03-28)
- compatible python 3.3
0.2(2013-03-28)
- automatically decode headers, allowing for unicode subjects, senders, recipients, CCs and body
- new timeout parameter: mails in the processing state for longer than this timeout will be reprocessed
- use SEEN and FLAGGED to manage mail states (not processed, processing, processed)
- captures from the rules’ regexps available in Callback.matches (previously, this was storing MatchObjects)
0.1(2013-03-20)
- first version