On Sun, 24 Jan 2021 11:24:39 +0200
Teemu Likonen <tliko...@iki.fi> wrote:

> > 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.

Take a look at the mboxgrep package.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Attachment: pgpsmLy_CQuOE.pgp
Description: OpenPGP digital signature

Reply via email to