fbpx
  • Win a Fitbit Inspire HR when you move your hosting to us. Competition ends 30 November 2019

How to delete all message in Mutt

Background

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 root@localhost 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.

This article will help you to solve the problem of deleting many messages at once.

Steps to delete all messages

Start mutt

Press SHIFT-D (uppercase d). The status bar of mutt should show.

Type in ~s .* in the status bar and press enter

Press q to quit, and then y to confirm the deletion of all messages.

Reference

https://major.io/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top