jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
336 stars 73 forks source link

Add maxResults param #64

Open rasa opened 2 years ago

rasa commented 2 years ago

This will speed up processing, as the code was defaulting to retrieving 100 messages. Now, it will retrieve 500 messages by default, unless the user specifies a lower amount via:

gmail = Gmail()
gmail.maxResults = 10
messages = gmail.get_messages(query='example')
OttomanZ commented 12 months ago

@jeremyephron Hi, can you take a look into adding this into the system, I believe that this is a must have for many applications that rely on consistently getting inbox results, and if we are fetch all of them it slows us down.