How do I delete all emails from a Maildir without destroying stuff logs and index?
feedback
|
|
I might be wrong, but I'm pretty sure within the Maildir you can simply delete all files. Log files should be in /var/log/ and indexes you normally want to blow away if you are deleting all the emails. A new index should be created and it will be empty, this operation will be fast.
Am I missing something? You can also google for maildir cleanup scripts that are more sophisticated. | |||
|
feedback
|
| |||
|
feedback
|