when removing account, remove its data directory instead of leaving it around

recreating the account would resurface the old messages, certainly not what you'ld expect.
it's about time to just remove the files. we do ask admins to confirm that when
removing through admin interface. it's also in the "mox config account rm" help
output now.

for issue #162 by RobSlgm with feedback from x8x, thanks!
This commit is contained in:
Mechiel Lukkien
2024-05-09 16:26:08 +02:00
parent a2c9cfc55b
commit 30ac690c8f
5 changed files with 18 additions and 2 deletions

2
doc.go
View File

@ -937,6 +937,8 @@ Remove an account and reload the configuration.
Email addresses for this account will also be removed, and incoming email for
these addresses will be rejected.
All data for the account will be removed.
usage: mox config account rm account
# mox config address add