[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Archivemail



On Sun, 2021-01-24 at 00:31 +0000, Mark Fletcher wrote:
> I'm probably going to just write a python3 script of my own to handle my 
> use-case, which is just to sift through /var/mail/<user> to delete mails 
> older than a month.

Erm, what am I missing, couldn't you do that with a crontab line
something like..

 0 1    *   *   *   find /var/mail/ -type f -mtime +30 -delete

Or with an -exec option to move and compress them for archival
purposes.

-- 
Tixy



Reply to: