The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can I gzip or delete pacct files in solaris ? neel.gurjar SUN Solaris 3 09-16-2008 01:12 AM
Script to delete mails from maildir squid04 UNIX for Dummies Questions & Answers 1 02-08-2007 06:25 AM
Delete all mails using mailx or mail ninjanesto Shell Programming and Scripting 2 11-07-2006 06:16 AM
how to send mails to users on exchange server from sendmail/solaris(mailx) ganeshh SUN Solaris 5 11-17-2005 09:51 PM
delete a file from an existing Solaris tar avnerht UNIX for Dummies Questions & Answers 2 03-20-2002 02:23 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-11-2007
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 151
Delete all mails on Solaris

How do I delete all my mails in the mailbox on Solaris?

$mail
? d *
Illegal numeric
?

d * does not work. Also I want to retain the mailbox.

Thanks,
Rahul.
Reply With Quote
Forum Sponsor
  #2  
Old 06-12-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,592
http://www.unix.com/unix-dummies-questions-answers/29138-how-delete-all-email-messages-one-time.html#post302079978
Reply With Quote
  #3  
Old 06-12-2007
radoulov's Avatar
addict
 

Join Date: Jan 2007
Location: Milano, Italia/Варна, България
Posts: 1,859
Code:
>"$MAIL"
Code:
printf "d*q"|mailx -N
Reply With Quote
  #4  
Old 06-02-2008
Registered User
 

Join Date: Jun 2008
Posts: 1
Quote:
Originally Posted by rahulrathod View Post
How do I delete all my mails in the mailbox on Solaris?

$mail
? d *
Illegal numeric
?

d * does not work. Also I want to retain the mailbox.

Thanks,
Rahul.
On the command line outside of the mail command type all together:
mail d *
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0