The delete-by-pattern is the D command. But how can I specify a range, say from message number 1234 through 2345? Using D with something like 1234-2345 obviously fails because it treats it as a pattern, not a range of message numbers.
2 Answers
This was very helpful, but still wasn't quite obvious to a complete newbie like me. In gory detail...
- Type
D muttresponds withDelete messages matching:
- Type a response following the pattern:
~m 1234-2345
-
1This doesn't add anything to the accepted answer...jasonwryan– jasonwryan2016-11-28 02:53:37 +00:00Commented Nov 28, 2016 at 2:53
-
4I will grant that it's merely a combination of the question and the accepted answer; however, it connects the dots, so you don't have to, and that's apparently valuable to several voters. It's exactly the correct procedure in 3 bullet points.Kevin_Kinsey– Kevin_Kinsey2018-03-07 23:01:30 +00:00Commented Mar 7, 2018 at 23:01
Use the ~m pattern.
~m 1234-2345
You would need to use ~m even to delete a single message by its number (or, of course, you could move to it and use d).