Python Imap for Human Beings.Pyton3 Only
swdt-imbox的Python项目详细描述
imbox-python imap人类版
=
[![构建状态](https://travis-ci.org/ookami-kb/imbox.svg?branch=master)](https://travis ci.org/ookami kb/imbox)
python库,用于读取imap邮箱并将电子邮件内容转换为机器可读数据
导入imbox
imbox=imbox('imap.gmail.com',
用户名='username',
密码='password',
ssl=true)
=imbox.messages(发送到“martin@amon.cx”)
=imbox.messages(folder='social')
所有消息中的消息:
……
keys
print message.keys()
'body':{
'plain:['ascii'],
'html':['html'html'html']
,
'attachments':[{
'content':<;stringio.stringio实例位于0x7f8e8445fa70>;
'attachments':
'content'type':'image/png',
'filename':“avatar.png”,
'content',
'body':{
'body':{
'body'
'body'>'body'
'body'>'body'
'on'br/>'plain'plain'26+0300英尺,
“邮件ID”:u'51f22baa.1040606',
“发件人”:[{
“姓名”:u'martin rusev',
“电子邮件”:“martin@amon.cx”
“发件人”:[{
“姓名”:u'john doe',
“电子邮件”:“john@gmail.com”
“主题”:u'hello john john,今天过得怎么样?
}
```
路线图
==
*延迟邮件获取
*改进附件处理
*搜索邮箱
*管理标签
*删除电子邮件
*撰写电子邮件
=
[![构建状态](https://travis-ci.org/ookami-kb/imbox.svg?branch=master)](https://travis ci.org/ookami kb/imbox)
python库,用于读取imap邮箱并将电子邮件内容转换为机器可读数据
导入imbox
imbox=imbox('imap.gmail.com',
用户名='username',
密码='password',
ssl=true)
=imbox.messages(发送到“martin@amon.cx”)
=imbox.messages(folder='social')
所有消息中的消息:
……
keys
print message.keys()
'body':{
'plain:['ascii'],
'html':['html'html'html']
,
'attachments':[{
'content':<;stringio.stringio实例位于0x7f8e8445fa70>;
'attachments':
'content'type':'image/png',
'filename':“avatar.png”,
'content',
'body':{
'body':{
'body'
'body'>'body'
'body'>'body'
'on'br/>'plain'plain'26+0300英尺,
“邮件ID”:u'51f22baa.1040606',
“发件人”:[{
“姓名”:u'martin rusev',
“电子邮件”:“martin@amon.cx”
“发件人”:[{
“姓名”:u'john doe',
“电子邮件”:“john@gmail.com”
“主题”:u'hello john john,今天过得怎么样?
}
```
路线图
==
*延迟邮件获取
*改进附件处理
*搜索邮箱
*管理标签
*删除电子邮件
*撰写电子邮件