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

Re: Move messages instead of Copy



On Tue, Mar 04, 2008 at 05:54:30PM +0100, Nicolas KOWALSKI wrote:
> 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>'

Thanks.  I have a lot of mailboxes (my "inbox" is only where list
traffic goes that I haven't setup with procmail yet).  I think
I'd prefer to use cron on the imap server to move old files but it's
nice to know about the hook.  Thanks.

-- 
Bill Moseley
moseley@xxxxxxxx