Once a day you can export your emails to a web server, where you can curl them at your leisure.
With Gmail & Co. I accept that for free.
With Protonmail, I have to pay for that (for my privacy to be disclosed), after a certain small space quota
That's what I mean