Solved

Bulk email purging on AIX

Posted on 2002-07-18
2
288 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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