Skip to content

Fix messages operation exceeding page limit#138

Open
proletarius101 wants to merge 3 commits into
emersion:masterfrom
proletarius101:fix-messages-operation-exceeding-page-limit
Open

Fix messages operation exceeding page limit#138
proletarius101 wants to merge 3 commits into
emersion:masterfrom
proletarius101:fix-messages-operation-exceeding-page-limit

Conversation

@proletarius101

Copy link
Copy Markdown
Contributor

Fixes #119

Comment thread protonmail/messages.go Outdated
Comment thread imap/mailbox.go Outdated
Comment thread imap/mailbox.go Outdated
Comment thread imap/mailbox.go Outdated
@emersion

emersion commented Jan 6, 2021

Copy link
Copy Markdown
Owner

This potentially sends a lot of requests in parallel. The ProtonMail API has limits and may send a 420 response.

@proletarius101

Copy link
Copy Markdown
Contributor Author

This potentially sends a lot of requests in parallel. The ProtonMail API has limits and may send a 420 response.

... Well that's a lot. 84000 messages totally. I have only 40000 messages for more than 10 years. So most people won't face such upper bound. Do you suggest to run this sequentially instead?

It might be a large number for Protonmail. But wouldn't ProtonMail API's thorttling be enough to defend this kind of "attack"? So for Protonmail's side I believe it's acceptable. The only problem is it may still raise errors, although much better than the 1 response of 200 messages limit.

@microo8

microo8 commented Jun 1, 2021

Copy link
Copy Markdown

When will this be merged?

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.

Workaround IDs maximum

3 participants