ProtonMail / go-proton-api

Proton API library used by Go-based clients and tools
MIT License
129 stars 17 forks source link

Feature Request: Setting message expiration #99

Open pushrbx opened 1 year ago

pushrbx commented 1 year ago

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.

jameshoulahan commented 1 year ago

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 :)