Solved

Bulk email purging on AIX

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

717 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