Recently I've made a mistake with a sieve filter and I've accidentally set the expiration time on all the 70k+ message I have in my proton mail account. So I was looking for a way to revert it. I've found this repo, so I thought I'm going to make a modded proton bridge app which would just fix my silly mistake. However there wasn't any function available for interacting with the /mail/v4/messages/expire endpoint, so here it is.
This PR adds functions to interact with the /mail/v4/messages/expire API endpoint to set or remove expiration time on messages.
Recently I've made a mistake with a sieve filter and I've accidentally set the expiration time on all the 70k+ message I have in my proton mail account. So I was looking for a way to revert it. I've found this repo, so I thought I'm going to make a modded proton bridge app which would just fix my silly mistake. However there wasn't any function available for interacting with the
/mail/v4/messages/expire
endpoint, so here it is.This PR adds functions to interact with the
/mail/v4/messages/expire
API endpoint to set or remove expiration time on messages.