I fear this for my gmail. I now use mbsync (lieer[0]) to have my emails synced locally on my homeserver, and then browse it with notmuch[1]. It's an incredibly freeing experience to have all your email on your own machine.
0: https://github.com/gauteh/lieer
1: https://notmuch.readthedocs.io/en/latest/man1/notmuch.html