Reputation: 388
On your gmail account settings you can set IMAP folder size limit:
My goal is to select "Do not limit the number of messages in an IMAP folder (default)" option using some kind of API, but there is nothing useful in API documentation.
Is there any other way to turn off this limit?
Upvotes: 0
Views: 339
Reputation: 746
You can use the Gmail API to do this. Calling the users.settings.updateImap method with maxFolderSize
set to 0
will remove the folder limit. Reference doc: https://developers.google.com/gmail/api/v1/reference/users/settings/updateImap
Upvotes: 1