Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fanpei91 opened this issue Oct 29, 2015 · 1 comment
Open

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

fanpei91 opened this issue Oct 29, 2015 · 1 comment

Comments

@fanpei91
Copy link

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

感谢!

@raymondlu31
Copy link

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")')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants