simplegmail
simplegmail copied to clipboard
Add resultSizeEstimate property
This can work along with the maxResults property to see how many results there are without downloading them all:
gmail = Gmail()
gmail.maxResults = 1
messages = gmail.get_messages(query='example')
print("There are %d estimated results" % gmail.resultSizeEstimate)