<<< Date Index >>>     <<< Thread Index >>>

Re: Move messages instead of Copy



Bill Moseley <moseley@xxxxxxxx> writes:

> I need a cron job to do this automatically, but every so often I
> want to move old messages out of my mailbox (it's a bit slow loading
> my IMAP folders when they go over 20K messages or so). So I'll do
> something like:

I defined the following hook to move older than 20 days mails from my
INBOX to an "Archive" mailbox. 

#
# Personal messages
# archive old (see expiry_wait) messages to "Archive" mailbox
#
folder-hook =INBOX      'push 
<tag-pattern>~R~r>20d\n<tag-prefix-cond><save-message>=Archive\n<end-cond>'

-- 
Nicolas