On Sat, 15 Mar 2003, Chip Old wrote: > To delete all mailboxes that have not been accessed in the past 30 days, > use `find /var/mail -atime +30 -print -exec rm {} \;' . That will list > each offending mailbox, then delete it.
cat /dev/null > $mailbox is usually safer than rm, especially in systems where the mail spool directory isn't set 1777. (Some people _are_ that paranoid)