pyMail icon indicating copy to clipboard operation
pyMail copied to clipboard

怎么获取收件箱所有的邮件?

Open fanpei91 opened this issue 9 years ago • 1 comments

你好, 很感谢你提供如此之好的库, 我大概看了下你代码, 发现没有找到收取所有邮件, 你只提供了"未读"的. 能加上这么个功能么?

感谢!

fanpei91 avatar Oct 29 '15 07:10 fanpei91

You may add the following functions to pyMail.py

def getAll(self):
    return self.search(None,"All")

def getSeen(self):
    return self.search(None,"Seen")

def getThisYear(self):
    return self.search(None,'(SINCE "01-Jan-2017")')

raymondlu31 avatar May 31 '17 05:05 raymondlu31