Solved

Bulk email purging on AIX

Posted on 2002-07-18
2
274 Views
Last Modified: 2010-04-21
There is a server with almost 20,000 emails for the root account, most of them unread.  The majority of these can be deleted.  I want to know if there is a quick way to delete groups of them based on subject?  A lot of them have the same subject line.

I am just using the standard mail client.  To my knowledge there is no other mail client available, and no possibility of installing one.  The mail file is /var/spool/mail/root.  AIX is version 4.2.1.

Thanks for any ideas.
0
Comment
Question by:barthalamu
2 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 400 total points
ID: 7293821
I do beleive that there is a tool for doing that.
But I do not beleive in any automatic mail tools :-)
I have had such a problem once (about 2,000 messages),
and solved it this way.

Using "pine" mail reader (somewhere near http://www.washington.edu/pine), enter the Inbox,
("FOLDER LIST" --> "INBOX", or "MESSAGE INDEX" in main menu), sort messages by sybject ( "$S" ), and
start moving down pressing "D" from the first message
with the correct subject to delete.

It should take about 10 minutes from you to do this.
But: at the start (when opening mailbox) it may take
a lot of time and memory.

Good luck.
0
 

Author Comment

by:barthalamu
ID: 7432080
I'm sorry, I forgot about this question...I ended up doing exactly this.  Thanks for the help.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now