Re: [exim] Slightly OT: autodelete older emails

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Robert Nicholson
Date:  
À: Yan Seiner
CC: exim-user
Sujet: Re: [exim] Slightly OT: autodelete older emails
I do something similar by having a perlscript run from cron against my
imap server to delete based on ttl/expiry times from the mailbox.

So you could do the same by sweeping thru and purging based on
creation time

On Mar 26, 2008, at 7:18 AM, Yan Seiner wrote:

> I am using exim .forward to put all mailist emails into a single lists
> file. Now I would like to set up that list file as a ringbuffer, so
> that when a new email comes in, an older one drops off. (most
> maillists
> are archived anyway, so there's no point in keeping old emails).
>
> I can either do this as each mail comes in, or daily in batch, but how
> do I set up a filter to delete older emails? Or should I write a
> script
> to do this from cron?
>
> --Yan
>
> -- 
>  o__
>  ,>/'_          o__
>  (_)\(_)        ,>/'_        o__
> Yan Seiner      (_)\(_)       ,>/'_     o__
> Certified Personal Trainer   (_)\(_)    ,>/'_        o__
> Licensed Professional Engineer         (_)\(_)       ,>/'_
> Who says engineers have to be pencil necked geeks?  (_)\(_)

>
> Help out my kids' school: http://www.seiner.com/blog/Travels/
>
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/