Mart�n Marqu�s([EMAIL PROTECTED])@2001.05.14 18:10:23 +0000:
> Quoting Charles Cazabon <[EMAIL PROTECTED]>:
> 
> > Mart�n Marqu�s <[EMAIL PROTECTED]> wrote:
> > > 
> > > I need to weekly clean the mailboxes of our users, this is mark as deleted
> > all
> > > mails older then 10 days, for example, and expunge them from the mailbox
> > (this
> > > with a determined mailbox, not necesarally tghe INBOX).
> > 
> > If the messages are stored in Maildir format, this is trivial.  Just delete
> > every file under the Maildir that has a ctime (or possibly mtime) older
> > than
> > 10 days.  You can easily find all such files with the find command.
> 
> No, thats not what I want. It a mailbox!
> I would need to trace the mailbox, slit the different mails and see the date
> line to decide if it should be deleted.
> But that is not so trivial. :-(
try procmail.  i think it can do it.
/k

-- 
> Black holes are where GOD is dividing by zero
KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de
[Key] [KeyID---] [Created-] [Fingerprint-------------------------------------]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 BF46

Reply via email to