simplegmail icon indicating copy to clipboard operation
simplegmail copied to clipboard

Add maxResults param

Open rasa opened this issue 3 years ago • 1 comments

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

rasa avatar Apr 18 '22 21:04 rasa

@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.

OttomanZ avatar Sep 17 '23 22:09 OttomanZ