Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to delete multiple mails under solaris 2.8

Status
Not open for further replies.

andimue

Programmer
Jun 29, 2001
18
DE
Hello,

when I return from my holiday I got more than 200 mails in my solaris 2.8 mailbox (cronjob-logs,...). The rest of the day I didnt nothing else than typing "d" and return in the mail-program. Is their a way to delete a range of mail , e.g. d 1-50 to delete mail #1 to #50 ? I would also appreciate a shellscript example.

Thanks
Andi
 
Hi andimue,
Have you tried giving "d 1-50" at the prompt of the mail-program?
I use "mailx" on SunSolaris 2.6 and "d 1-50" works fine to delete mails from 1 to 50.
Hope this helped you.
 
Hi vikramkalsi,
you're right, "d 1-50" works fine under mailx ( but not under mail ).
I normaly used mail , but why not use mailx ?

Thanks alot

andimue
 
If you want to get rid of them all, use "d *".
Again this works in mailx not mail.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top