go-proton-api icon indicating copy to clipboard operation
go-proton-api copied to clipboard

Feature Request: Setting message expiration

Open pushrbx opened this issue 2 years ago • 2 comments
trafficstars

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.

pushrbx avatar Sep 24 '23 10:09 pushrbx

Thanks for that! Hope you managed to sort out your messages.

I'm keen to merge this; will run it past the rest of the team :)

jameshoulahan avatar Sep 29 '23 11:09 jameshoulahan

Any chance of getting this merged? I have recently been bitten in a similar fashion and realized with some surprise that there is no way provided to remove expiration from messages in bulk. It's an incredible feature to have, but it's powerful and easy to make mistakes with -- there needs to be some avenue for correcting it when it happens.

mbainter avatar Feb 04 '25 17:02 mbainter