LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2006, 04:18 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 682

Rep: Reputation: Disabled
mutt delete all mails


I have got a lot of mails in different mailboxes that I want to delete altogether. Is there any way to select all the mails and delete them in one hit?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-19-2007, 05:52 PM   #2
bdb4269
Member
 
Registered: Feb 2006
Posts: 57

Rep: Reputation: 22
I know this was dead -- but I figured, since I just found the answer, and this un-answered thread at the same time (I had the same question and used google), I might as well go ahead and answer it, in case anyone else is ever looking for the answer here.

In the main view press "D" (Shift + d)
At the bottom it asks "Delete messages matching:"

Enter the following and press enter.

Code:
~s .*
All messages will be marked for deletion. Now just press "q" to quit and "y" to confirm you want to delete all those messages.

(The ~s makes it search the subject for the given expression and of course ".*" is a global regex wild card.

See this page for more details. http://www.mutt.org/doc/manual/manual-4.html)
 
7 members found this post helpful.
Old 01-11-2010, 01:58 PM   #3
amlife
Member
 
Registered: Sep 2007
Location: Canada
Distribution: RHEL, Debian, SUSE
Posts: 34

Rep: Reputation: 1
Quote:
~s .*
If no one thanked you for your answer, I would
 
Old 05-15-2010, 02:13 AM   #4
tsuchan1
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
Thumbs up Thanks!

Quote:
Originally Posted by bdb4269 View Post
I know this was dead -- but I figured, since I just found the answer, and this un-answered thread at the same time (I had the same question and used google), I might as well go ahead and answer it, in case anyone else is ever looking for the answer here.
Thanks for figuring that... it's been *very* useful to me several times.
 
Old 03-30-2016, 05:38 AM   #5
davemidd
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by bdb4269 View Post
I know this was dead -- but I figured, since I just found the answer, and this un-answered thread at the same time (I had the same question and used google), I might as well go ahead and answer it, in case anyone else is ever looking for the answer here.

In the main view press "D" (Shift + d)
At the bottom it asks "Delete messages matching:"

Enter the following and press enter.

Code:
~s .*
All messages will be marked for deletion. Now just press "q" to quit and "y" to confirm you want to delete all those messages.
Just found this via Google. Thanks.
 
Old 03-30-2016, 11:54 AM   #6
wrmosca
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: 0
You can also use a date range if you use ~d dd/mm/yyyy-dd/mm/yyyy
 
  


Reply

Tags
mutt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot save copy of sent mails with mutt SlackN00b Linux - Software 1 06-09-2006 09:56 AM
How to search in mutt and select ALL mails ? fluppi Linux - Software 2 04-25-2006 02:10 AM
Fetching mails with Mutt LinuxLala Linux - News 4 11-27-2005 11:45 AM
howto get/send mails using mutt-like apps? minike Slackware 2 05-01-2005 05:27 PM
howto get/send mails using mutt-like apps minike Linux - Networking 0 04-30-2005 01:37 AM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration