Sam [mailto:[EMAIL PROTECTED]] wrote:
> My webmail CGI creates a cache file that stores the headers of all the
> messages in the Maildir.  The cache file gets automatically rebuilt when
> new messages arrive.  I compare the timestamps to figure out when I need
> to rebuild the cache file.  Works very well, to format the folder contents
> I only need to open the cache file, and read it.

This is the way to do it. I'm concerned that the IMAP Maildir driver does not
store any kind of database like this, so it has to scan all of the files to
produce summary information. The method you are taking of storing a helper
index is the way to go. Any chance you'd be interested in working your code
into the IMAP Maildir driver code?

Because the lack of any helper index in the current IMAP Maildir driver really
bothers me, I'm going to be comparing the performance of the Maildir driver and
the "mbx" driver in IMAP. It works on a single file database and is described
as follows:

Driver: mbx
concurrent read/write access: yes
expunge permitted in concurrent read/write access: yes
sticky UIDs: yes
keyword flags: yes
subfolders: no (drh note: I can fix this easily enough)
usable over network filesystems: no
Performance: very good (relative to other IMAP drivers)
Layout: prefile (file with preallocated space for state)
Comment: best performing local file driver; preferred format at UW

Any comments?

 - David Harris
   Principal Engineer, DRH Internet Services

Reply via email to