Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > deleting mail from the terminal

deleting mail from the terminal
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2001
Location: New York NY
Status: Offline
Reply With Quote
Jun 20, 2003, 11:31 AM
 
how can i delete local mail messages from the terminal using the mail commmand?!?

i type 'mail' into a terminal window and it lists 9 new messages for my user account.

i can read the messages, but when i attempt to delete them (following the procedures outlined in mail's help system or man mail), nothing happens.

     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Jun 20, 2003, 04:11 PM
 
Originally posted by mokolabs:
how can i delete local mail messages from the terminal using the mail commmand?!?

i type 'mail' into a terminal window and it lists 9 new messages for my user account.

i can read the messages, but when i attempt to delete them (following the procedures outlined in mail's help system or man mail), nothing happens.

When reading mail in the terminal by using the "mail" command... just start the mail program:

mail [Enter]

You should then see a list of your mail messages... you should also have an & prompt. Then:

d1-9 [Enter]

Which will delete messages 1 through 9 and you should get the & prompt again. Next:

q [Enter]

This will "finalize" the deletion. If you press "x" to quit mail your deleted mails will still be there. When you delete emails using "mail" as your email program and then use "q" to quit... they are GONE... no way to get them back that I know of.

Hope that helps.
-DU-...etc...
     
Fresh-Faced Recruit
Join Date: Jul 2001
Location: New York NY
Status: Offline
Reply With Quote
Jun 20, 2003, 07:17 PM
 
thanks! that worked perfectly!!!
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:00 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2