The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 05:12 AM
Script to delete mails from maildir squid04 UNIX for Dummies Questions & Answers 1 02-08-2007 09:25 AM
Delete all mails using mailx or mail ninjanesto Shell Programming and Scripting 2 11-07-2006 09:16 AM
how to send mails to users on exchange server from sendmail/solaris(mailx) ganeshh SUN Solaris 5 11-18-2005 12:51 AM
delete a file from an existing Solaris tar avnerht UNIX for Dummies Questions & Answers 2 03-20-2002 05:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-12-2007
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
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 (permalink)  
Old 06-12-2007
radoulov's Avatar
radoulov radoulov is online now Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,872
Code:
>"$MAIL"
Code:
printf "d*q"|mailx -N
  #4 (permalink)  
Old 06-02-2008
tazzer1234 tazzer1234 is offline
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 *
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0