hydroxide
hydroxide copied to clipboard
Fix messages operation exceeding page limit
Fixes #119
This potentially sends a lot of requests in parallel. The ProtonMail API has limits and may send a 420 response.
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.
When will this be merged?