Delete all mails on Solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Delete all mails on Solaris
# 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 *
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies

2. Windows & DOS: Issues & Discussions

Direct junk mails to inbox (instead of going to delete)

hi, some of my email are going into the junk box. so i have stopped the email junk filtering as per the below link Outlook 2013 Junk Email Filter - Litmus but now the mails are going into delete box instead of my inbox. so any idea how can i stop the junk emails going into delete box and... (2 Replies)
Discussion started by: mallikarjun7777
2 Replies

3. Solaris

Unable to send mails to external mailids from solaris 10

Hi, Iam not able to send mails from solaris servers to external mailid (gmail,yahoo).I am able to send mails to internal mailids with in network. Requesting you all to please help me to resolve this issue. Thanks in advance. Venkat (2 Replies)
Discussion started by: venkatasiva85
2 Replies

4. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

5. Solaris

Delete clientmqueue mails

My clientmqueue directory is almost 6.7GB. There are like a thousands of e-mail that are present. Is there any way to delete them or just delete them normally. Also while deleting them, do i need to shutdown my sendmail service? Root FS is almost at 100%. Please help in this. Thanks in... (1 Reply)
Discussion started by: aksijain
1 Replies

6. UNIX for Advanced & Expert Users

Delete printing everywhere in Solaris 8

I am in a prison system with a standalone (no internet connection) Solaris 8 network using Sun-Rays for clients (so no software is on the client side). We are finding a problem where inmates are using the print-to-file function to be able to rename folders everywhere on the server, meaning they are... (0 Replies)
Discussion started by: ixeye
0 Replies

7. UNIX for Dummies Questions & Answers

Question regarding mails from Solaris server

Hi, I am facing a problem with the mails coming from one of my server. The server hostname is "britten" and one of its aliases is "espmgy" in /etc/hosts. When I am sending any mail from the server its coming from abhi@espmgy.com instead of abhi@britten.com Can anyone tell me from where... (0 Replies)
Discussion started by: max29583
0 Replies

8. UNIX for Dummies Questions & Answers

Script to delete mails from maildir

Hi buddies, Anybody has any script to delete mails from Maildir/cur??? I mean is it possible to delete mails from Maildir/cur matching a particular subject like spam or fax??? Thanks in advance (1 Reply)
Discussion started by: squid04
1 Replies

9. Shell Programming and Scripting

Delete all mails using mailx or mail

Hi , ?im a newbie using shell scripts. Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command Thanks for your time E. Festas (2 Replies)
Discussion started by: ninjanesto
2 Replies

10. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
Login or Register to Ask a Question