Mutt is an amazing Linux terminal based email client that “just works”.
Why use Mutt at all?
One might ask why use a terminal based email client when such a wealth of highly feature rich web based email client software already exists? Let me give you one reason: As a server administrator, you need to see messages sent to root. Often on a dedicated or VPS hosted service, the operating system will spurn messages to
[email protected] if it deems the messages to be important. These critical messages often contain extremely valuable troubleshooting information that will be found nowhere else.
Why delete all messages?
System generated error and other message sent to Mutt will build up over time. If you don’t log in regularly and clean up, you might end up with thousands of messages eventually.
Emails messages to root can be transient, and only really important when they happen. When you have 1000s it’s impossible to focus on the most important ones.
This article will help you to solve the problem of deleting many messages at once.
Steps to delete all messages
Press SHIFT-D (uppercase d). The status bar of mutt should show.
~s .* in the status bar and press enter
q to quit, and then
y to confirm the deletion of all messages.