[Dovecot] Speed up large maildirs

Johannes Berg johannes at sipsolutions.net
Tue Feb 15 20:33:35 EET 2005


Leen Besselink wrote:

>That mean, updates are small, and opening a large maildir would be sped up.
>
>How does that sound ?
>  
>
What difference does this make to simply telling dovecot to open the 
maildir periodically? You could do that easily in python:

import imaplib
conn = imaplib.IMAP4_open("/usr/sbin/dovecot --exec-mail imap")
conn.select("targetfolder")
conn.logout()

Obviously you'd have python start overhead, but you can just use expect 
instead, which probably starts faster. Make your wrapper store a list of 
changed folders somewhere, and iterate over that list every couple of 
minutes using above script.

Or am I misunderstanding something?
Oh, the best would obviously be using the (planned to be upcoming, I 
believe) dovecot LDA (local delivery agent).

johannes



More information about the dovecot mailing list