Using users.messages.list to read a lot of messages in metadata scope

Viewed 14

I need to read a lot of mails from Gmail using users.messages.list and metadata scope. https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list

Problem is that parameter "Q" is unavailable with scope metadata and I can't filter messages by datetime ("after:... before:...". I am wondering how it is not fixed... https://issuetracker.google.com/issues/62062921

I can't read all messages at once because there are millions of emails.

PageToken get expired after several hours, so I couldn't use it.

Is there any possibility to read messages partially with scope metadata?

0 Answers
Related