Home Man
Search
Today's Posts
Register

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in the UNIX for Beginners Questions & Answers forum.

Delete all mails on Solaris

Tags
beginners

 

 
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.
# 2  
Old 06-12-2007
# 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 *
 

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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
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
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
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


All times are GMT -4. The time now is 07:55 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password