On Fri, Sep 25, 2009 at 06:12:53PM +0200, Jan-Herbert Damm wrote:
> Hello Chris,
> 
> Chris G wrote on 25.09.09:
> > Are there any obvious ways either within mutt or using some sort of
> > external tool which would allow archiving and/or deletion of messages
> > older than a certain date?
> 
> since you are a regular poster this might be old news but are you aware of the
> thread named "Archiving" we had in Febuary? Kyle presented a hook that could
> possibly help you.
> 
> folder-hook =mutt-users 'push "<tag-pattern>~r>3m<enter>\
> <tag-prefix-cond><save-message>=Archive.mutt-users<enter>\
> <untag-pattern>~A<enter>"'
> 
> Kyle explains how it works in that thread in great detail.
> 
Thanks, I remember that thread now and I've gone and had another look.
It too doesn't address the hierarchy that I want to archive (at least
if I understand what it's doing it doesn't).

I need something like a 'find' but which acts on message dates rather
than file dates.  I suppose I can use find to negotiate the hierarchy
and then use archivemail in the exec part of find but it seems rather
clumsy somehow.

Maybe I'll just write something in python to do what I want, I already
have a little collection of python mail utilities.

-- 
Chris Green

Reply via email to