Register now and start sharing your code snippets.
-->
Delete messages containing a keyword in mutt
Shell Script (Bash) posted about 1 year ago by marko
Bulk operations in mutt, a console based email client, are easy. Here’s how to delete messages containing the keyword ‘Newsletter’.
1 T 2 Newsletter 3 ; 4 d 5 $T – asks which messages you want to tag and you reply with ‘Newsletter’.
; – asks which action you want to run on the tagged messages.
d – tells that the action you want is delete.
$ – synchronizes the view with the underlying persistence layer.