Re: Auto archiving
* Danny <danny@xxxxxxxxxxxxxx> [2006-05-12 19:53 +0200]:
> I have quite a few mailboxes, and many of these are from lists. How can I have
> mutt autoarchiving all messages in all mailboxes that are more than 10 days
> old?
>
> At the moment I tag all these messages with the following macro, and then I
> save
> it to the appropriate mailbox.
>
> macro index \eA "T ~d>30d<enter>"
I do
push
"<tag-pattern>~r>10d\n<untag-pattern>~F|~D|~O|~N\n<untag-pattern>~(!~T)\n<tag-prefix-cond><save-message>\n\n<sync-mailbox><first-entry><next-new><redraw-screen>"
on entering my ML boxes (via a folder-hook).
It moves only threads containing mails older than 10 days which are
not flagged, unread or new. You need the
patch-1.5.6+20040904.tg.mutt-thread.3 to use ~(.
HTH,
Nicolas
--
http://www.rachinsky.de/nicolas