?
Solved

Bulk email purging on AIX

Posted on 2002-07-18
2
Medium Priority
?
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 1600 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.
Suggested Courses

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