Unix Technical Forum

Cleaning Mail Spool files.

This is a discussion on Cleaning Mail Spool files. within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi I would like to clean the mail boxes of users in /var/spool/mail in my RS6000 boxes. Can anyone ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 05:12 AM
Krishna
 
Posts: n/a
Default Cleaning Mail Spool files.

Hi

I would like to clean the mail boxes of users in /var/spool/mail in my
RS6000 boxes.

Can anyone tell me, is there any script/tool which can remove the
mails which are 2 months old.

Note: I would like to remove the messages which are 2 months older,
not entire files.

Please advice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 05:12 AM
Patrick Begou
 
Posts: n/a
Default Re: Cleaning Mail Spool files.

Krishna wrote:
> Hi
>
> I would like to clean the mail boxes of users in /var/spool/mail in my
> RS6000 boxes.
>
> Can anyone tell me, is there any script/tool which can remove the
> mails which are 2 months old.
>
> Note: I would like to remove the messages which are 2 months older,
> not entire files.
>
> Please advice


I do not think there is an AIX command for this purpose. But have a look
at the procmail/formail software. It can solve your problem.
www.iki.fi/era/procmail/mini-faq.html -
or
www.procmail.org

Patrick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 05:12 AM
Friedrich Roesch
 
Posts: n/a
Default Re: Cleaning Mail Spool files.

Patrick Begou <Patrick.Begou@hmg.inpg.fr> wrote:
> Hi
>
> I would like to clean the mail boxes of users in /var/spool/mail in my
> RS6000 boxes.
>


www.shelldorado.com

is your friend. Look for expiremail.ksh

Friedrich

--

Friedrich Roesch
Fachhochschule Mannheim, Hochschule fuer Technik und Gestaltung
Rechenzentrum, Windeckstr. 110, 68163 Mannheim
Tel.:+49 (0)621 2926232, Fax +49(0)621 2926420, f.roesch@fh-mannheim.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 05:17 AM
Krishna
 
Posts: n/a
Default Re: Cleaning Mail Spool files.

Friedrich Roesch <roesch@roxi.rz.fh-mannheim.de> wrote in message news:<cnhpvm$igm$1@news.BelWue.DE>...
> Patrick Begou <Patrick.Begou@hmg.inpg.fr> wrote:
> > Hi
> >
> > I would like to clean the mail boxes of users in /var/spool/mail in my
> > RS6000 boxes.
> >

>
> www.shelldorado.com
>
> is your friend. Look for expiremail.ksh
>
> Friedrich


Hi

This script is not working properly in AIX. Is there any modifications
we need do. I am getting following error.

# ./expiremail.ksh -d 60 -v -D /var/spool/mail/root
../expiremail.ksh[554]: true: bad number

Please help me, if you have seen this error before.

Thanks
Siva
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 05:17 AM
Krishna
 
Posts: n/a
Default Re: Cleaning Mail Spool files.

Friedrich Roesch <roesch@roxi.rz.fh-mannheim.de> wrote in message news:<cnhpvm$igm$1@news.BelWue.DE>...
> Patrick Begou <Patrick.Begou@hmg.inpg.fr> wrote:
> > Hi
> >
> > I would like to clean the mail boxes of users in /var/spool/mail in my
> > RS6000 boxes.
> >

>
> www.shelldorado.com
>
> is your friend. Look for expiremail.ksh
>
> Friedrich


Hi

This script is not working properly in AIX. Is there any modifications
we need do. I am getting following error.

# ./expiremail.ksh -d 60 -v -D /var/spool/mail/root
../expiremail.ksh[554]: true: bad number

Please help me, if you have seen this error before.

Thanks
Siva
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com