[Dovecot] Best way to move mail to an archive

David Woodhouse dwmw2 at infradead.org
Sun Dec 19 00:32:36 EET 2010


On Sat, 2010-12-18 at 12:21 -0500, Richard C. Cox wrote:
> I'd like to archive e-mail as it ages into a 
> single IMAP archive directory.  Ideally, I would like to set up a cron job to 
> search for e-mail in all of my imap directories that older that 'X' days and 
> move it to the archive directory.  I know that dovecot wants to manage e-mail 
> movement thru the IMAP interface, so I'm leery of just using ordinary Linux 
> commands to move mail around and bypass the IMAP protocol.  Does anybody have 
> any recommendations about dovecot/IMAP safe commands I could use to accomplish 
> this task? 

Personally, I just do it over IMAP.

http://david.woodhou.se/archivemail.sh

-- 
dwmw2



More information about the dovecot mailing list