微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

libgmail Python的Gmail模块

程序名称:libgmail

授权协议: GPL

操作系统: 跨平台

开发语言: Python

libgmail 介绍

libgmail 是 Python 用来访问 Gmail 服务的模块。

示例代码

import libgmail

ga = libgmail.GmailAccount("[email protected]", "mymailismypass")
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

libgmail 官网

http://libgmail.sourceforge.net/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐