Python的Gmail模块 libgmail
libgmail 是 Python 用来访问 Gmail 服务的模块。示例代码:import libgmail
ga = libgmail.GmailAccount("google@gmail.com", "mymailismyp**")
ga.login()
folder = ga.getMessagesByFolder('inbox')
for thread in folder:
print thread.id, len(thread), thread.subject
for msg in thread:
print " ", msg.id, msg.number, msg.subject
print msg.source
ga = libgmail.GmailAccount("google@gmail.com", "mymailismyp**")
ga.login()
folder = ga.getMessagesByFolder('inbox')
for thread in folder:
print thread.id, len(thread), thread.subject
for msg in thread:
print " ", msg.id, msg.number, msg.subject
print msg.source
没有找到相关结果
已邀请:
0 个回复