Delete all mails on Solaris


 
Thread Tools Search this Thread
# 1  
Old 06-12-2007
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.
# 3  
Old 06-12-2007
Code:
>"$MAIL"

Code:
printf "d*q"|mailx -N

# 4  
Old 06-02-2008
Quote:
Originally Posted by rahulrathod
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 *
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Solaris - Sendmail - Adding .com.gr in external senders e-mails Mcasim Solaris 2 08-11-2017 04:36 AM
Direct junk mails to inbox (instead of going to delete) mallikarjun7777 Windows & DOS: Issues & Discussions 2 08-16-2013 11:34 AM
Unable to send mails to external mailids from solaris 10 venkatasiva85 Solaris 2 07-24-2012 10:27 AM
Solaris, delete install files lmdcmn Solaris 2 05-03-2012 02:27 AM
Delete LACP in Solaris 10 10/09 s10s_u8wos_08a SPARC etomer_sk Solaris 3 05-02-2012 05:28 AM
mailx- how to delete least of mails aish11 Shell Programming and Scripting 6 01-30-2012 08:18 AM
Delete clientmqueue mails aksijain Solaris 1 08-30-2011 09:32 AM
how to delete 3 days old files using ftp in a shell script (Solaris OS) Olivia Shell Programming and Scripting 5 12-07-2010 12:31 AM
Delete printing everywhere in Solaris 8 ixeye UNIX for Advanced & Expert Users 0 07-31-2010 10:39 AM
Question regarding mails from Solaris server max29583 UNIX for Dummies Questions & Answers 0 04-02-2009 05:36 AM
Can I gzip or delete pacct files in solaris ? neel.gurjar Solaris 3 09-16-2008 04:12 AM
Script to delete mails from maildir squid04 UNIX for Dummies Questions & Answers 1 02-08-2007 08:25 AM
Delete all mails using mailx or mail ninjanesto Shell Programming and Scripting 2 11-07-2006 08:16 AM
how to send mails to users on exchange server from sendmail/solaris(mailx) ganeshh Solaris 5 11-17-2005 11:51 PM
delete a file from an existing Solaris tar avnerht UNIX for Dummies Questions & Answers 2 03-20-2002 04:23 PM