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

Re: Archivemail



On Sun, 24 Jan 2021 11:24:39 +0200
Teemu Likonen <tlikonen@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: pgp3iiML3E3vP.pgp
Description: OpenPGP digital signature


Reply to: