Re: Move mail based on date?
* Christian Dysthe <christian@xxxxxxxxxx> [2004-10-03 08:48 -0500]:
> I have mail set to be moved from the =INBOX to =Saved using mbox-hook.
> However, I was wondering if it would be possible somehow only to have
> read mail, let's say, older than a week moved instead of all read
> mail? I have poked around, but not found a way to do it. Could someone
> please point me in the right direction?
I don't know a way to do this on leaving the folder. But it can be
done on entering it.
Just add appropriate save-hooks and folder-hooks with something like
the following.
push "<tag-pattern>~r>10d\n<tag-prefix-cond><save-message>\n\n"
Or what I use:
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>"
The number of the \n after <save-message> depends on some settings, I don't
remember at the
moment.
Nicolas