Mutt β delete messages by date range
- April 23rd, 2013
- Write comment
Finally got fed up when faced with how to delete 9,000 of 10,000+ email message using mutt in linux. The key is to get the messages tagged. To tag messages, hit βTβ (capital T). Then, you will be presented a βTag messages matching:β prompt.
Tag the messages by date:
Tag messages matching: ~d dd/mm/yyyyβdd/mm/yyyy
For example:
Tag messages matching: ~d 01/01/2012-31/12/2012
Tagged messages will now have an β*β (asterik).
Delete all the tagged messages:
Hit the β;β (semi-colon). You will have a βtag-β prompt. Then, just hit βdβ.