home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] automatic mail delete?



If you are talking about separate user files, you could try something like this:

    # find /var/spool/mail -mtime -X -exec rm {} \;

where 'X' is your 'X days old' and '\;' is part of the syntax.  You can use the
'-i' or '-f' argument to 'rm' if appropriate.  See man find for more info.

Hope this helps.

havoc said:
> what command would I run to delete messages older than X days old in my
> mail spool?
>
> thanks,
> jody
> --
> http://www.RealizationSystems.com/ -- start communicating
> http://www.GalacticSlacker.com/ -- read it and weep
> http://www.NMPerspective.com/ -- a Southwest Perspective
> _______________________________________________

-- 
Michael Maddex -- Instructor
Computer Science and Technology
Northern New Mexico Community College

"If we believe absurdities, we shall commit atrocities."
-- Voltaire




Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache