Gmail API pagination (#469)

* Use pagination to fetch more than 100 Gmail messages at once

* Provide `paginate_messages` option to allow use of previous behavior
This commit is contained in:
mkupferman
2024-02-19 18:54:41 -05:00
committed by GitHub
parent d2145b71ba
commit efe74091f3
3 changed files with 31 additions and 9 deletions
+2
View File
@@ -295,6 +295,8 @@ The full set of configuration options are:
(Default: `https://www.googleapis.com/auth/gmail.modify`)
- `oauth2_port` - int: The TCP port for the local server to
listen on for the OAuth2 response (Default: `8080`)
- `paginate_messages` - bool: When `True`, fetch all applicable Gmail messages.
When `False`, only fetch up to 100 new messages per run (Default: `True`)
- `log_analytics`
- `client_id` - str: The app registration's client ID
- `client_secret` - str: The app registration's client secret