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

Add maxResults param #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rasa
Copy link
Contributor

@rasa rasa commented Apr 18, 2022

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
Copy link

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

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

Successfully merging this pull request may close these issues.

2 participants