* 2021-01-24 08:53:22+0000, t...@yxit.co.uk wrote: > 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
File /var/mail/$USER is an mbox file which contains several email messages. Your suggestion (find [...] -delete) may work with maildir email storage which has one file per message. -- /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
signature.asc
Description: PGP signature