CLI/API to purge/expunge messages #37
hadleyrich
started this conversation in
General
Replies: 1 comment
-
There is no functionality currently to automatically expunge deleted messages. Please feel free to file an enhancement request for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When managing users one of my maintenance tasks is emptying the Trash/Deleted Items for items older than n days. I'm not sure there is currently the ability to achieve this? I have had a bit of a hunt through the docs and the API code but can't see anything so far.
As an example, in Dovecot I would use the doveadm expunge command (https://doc.dovecot.org/3.0/man/doveadm-expunge.1/) like so:
doveadm -v expunge -d -A mailbox "Deleted Items" savedbefore 30d
Is this something that currently exists through the API? If not is it something that you would be open to including?
Note this is different to storage backend maintenance/purge, I'm referring to directly mutating end users mailboxes.
Beta Was this translation helpful? Give feedback.
All reactions