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.