paramiao / pymail Goto Github PK
View Code? Open in Web Editor NEW可以方便使用imap接收邮件并解析中文邮件,提取附件,并且发送邮件
可以方便使用imap接收邮件并解析中文邮件,提取附件,并且发送邮件
首先感谢作者解决了我一个大问题、之前写来一段代码用来解析邮件中的html、最近拿来用发现body解析成了一堆字符、找不到中间的url了、一直找不到问题的原因以及解决方法、测试了一把作者的代码发现成功了、先学习下再说!
It can print msg as string, which includes encoded attachment MIME part, but it cannot parse/separate attachment name and data as expected.
Tested with jpg and pdf files, pdf test case stop with IO error:
Traceback (most recent call last):
File "xxx.py", line 31, in
fileob = open(attachment['name'],'wb')
IOError: [Errno 2] No such file or directory: '\\webreq\WebReqDocs\469f6b6f0571492cb5bf11ffbcc7f7c0636282076179722797.pdf'
The actual attachment file name is "__webreq_WebReqDocs_469f6b6f0571492cb5bf11ffbcc7f7c0636282076179722797.pdf"
It seems got wrong escape.
def reinitMailInfo():是不是少了个self
socket.error: [Errno 10060]
我试了一下 为什么总是连接不上啊
您好,请教一下,在挂上VPN后,使用smtplib库无法跟邮件服务器连接,这种情况怎么解决。
取消掉vpn后,就可以连接了,但因为我要用的网站必须挂vpn,所以想请教您一下这种问题如何解决?
你好, 很感谢你提供如此之好的库, 我大概看了下你代码, 发现没有找到收取所有邮件, 你只提供了"未读"的. 能加上这么个功能么?
感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.