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

Fix messages operation exceeding page limit #138

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

Conversation

proletarius101
Copy link
Contributor

Fixes #119

protonmail/messages.go Outdated Show resolved Hide resolved
imap/mailbox.go Outdated Show resolved Hide resolved
imap/mailbox.go Outdated Show resolved Hide resolved
imap/mailbox.go Outdated Show resolved Hide resolved
@emersion
Copy link
Owner

emersion commented Jan 6, 2021

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

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

microo8 commented Jun 1, 2021

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