Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Purge all mail #658

Open
1 task done
shortstack opened this issue Jul 31, 2024 · 4 comments
Open
1 task done

[enhancement]: Purge all mail #658

shortstack opened this issue Jul 31, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@shortstack
Copy link

Which feature or improvement would you like to request?

Forgive me if this is in the docs and I missed it but I feel like I've gone through all of them at this point. Is there a way to purge all mail from the database? Loving Stalwart so far and this is my last hurdle. Thank you!

Is your feature request related to a problem?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shortstack shortstack added the enhancement New feature or request label Jul 31, 2024
@mdecimus
Copy link
Member

mdecimus commented Aug 3, 2024

Do you mean purging deleted and junk emails? Or you want to delete the entire contents of an account?
If it is purging deleted/junk you have the auto-expunge feature.

@shortstack
Copy link
Author

shortstack commented Aug 14, 2024

Purging the entire contents of all accounts, similar to how you can do this in Exchange with Get-Mailbox | Search-Mailbox -DeleteContent -Force

also thank you for responding @mdecimus!

@mdecimus
Copy link
Member

I think this is a dangerous feature to be made available globally. To empty an entire account you can post a JMAP request that does this using curl. The request should combine the query method to obtain all ids and then the set method to delete all ids resulting from the query.

@shortstack
Copy link
Author

@mdecimus oh snap, did not know this. would you happen to know what that looks like? before i go spending a couple hours in that rabbit hole? this is for a training environment we use at black hat/def con and it would be greatly appreciated... i can pay you in stickers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants