Search, Filter, and Tag messages in Mutt

mutt.png

Mutt lets you efficiently search inside messages using regular expressions and patterns. You can search both message headers and bodies for fragments matching a particular query string, and even automatically tag all matching messages for action. To do this, use the T command, followed by an appropriate selector. For example, the command T ~B techfinds and tags all messages containing the string “tech”.

You can also search messages by size or date. For example, the command T ~r 25/3/2005tags all messages received on 25 Mar 2005.

Within a message or message index, you can use the / command to find the next message matching a pattern. For example, the command / monfinds the next message (line) containing the word fragment mon in its headers (body).

Mutt also lets you “tag” multiple messages for action so that you can copy or delete them all at once with a single command. To use this feature, select each message with the t key command. Mutt will place an asterisk next to the message, indicating that it has been tagged. Once tagging is complete, use the ;c or ;d key shortcuts to copy or delete all the tagged messages simultaneously.

Related Posts

Comments are closed.