libgmail是Python用来访问Gmail服务的模块。
示例代码:
importlibgmailga=libgmail.GmailAccount("google@gmail.com","mymailismypass")ga.login()folder=ga.getMessagesByFolder('inbox')forthreadinfolder:printthread.id,len(thread),thread.subjectformsginthread:print"",msg.id,msg.number,msg.subjectprintmsg.source
评论