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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |