









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] automatic mail delete?
I'm hoping to find a solution that I can have the server blow them away
without ever downloading them from /var/spool/mail/user, which is a
single file.
This is for a mailbox I created called "scan" (which is short for "spam
can), which I use for creating accounts on sites I would like to get
information from, but not receive all of their junk mail.
j
Michael Maddex wrote:
> 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
|
|