[Dovecot] about index cache

Joe Wong joewong at tkodog.no-ip.com
Tue Aug 14 05:32:27 EEST 2007


Hi Timo,

Am I right that if the client fetch body.peek[header], no caching of 
header fields will be done?

Regards,

- joe

On Mon, 13 Aug 2007, Timo Sirainen wrote:

> On Mon, 2007-08-13 at 23:18 +0800, Joe Wong wrote:
> > Hi Timo,
> > 
> > Not necessarily. It goes like this:
> > 
> > 1. mailbox is newly created
> > 2. a new mail arrives
> > 3. Client does FETCH 1 (BODY.PEEK[HEADER.FIELDS (From)])
> >  --> Dovecot caches From header
> > 4. Client does FETCH 1 (BODY.PEEK[HEADER.FIELDS (Subject)])
> >  --> Dovecot caches Subject header
> > 5. a new mail arrives
> > 6. Client does FETCH 1 (BODY.PEEK[HEADER.FIELDS (From)])
> >  --> Dovecot caches From and Subject headers
> > 7. Client does FETCH 1 (BODY.PEEK[HEADER.FIELDS (Subject)])
> >  --> Dovecot gets Subject from cache
> > 8. a new mail is added with APPEND command or with deliver
> >  --> Dovecot caches From and Subject header immediately (v1.1 only)
> > 
> > at 3 and 4, does it means that dovecot has to open the message file twice to 
> > get the required header fields from the message?
> 
> Yes. But it's only that one time.
> 
> > What is the relationship 
> > between dovecot.index, dovecot.index.cache and dovecot.index.log?
> 
> http://wiki.dovecot.org/IndexFiles
> 
> 

-- 




More information about the dovecot mailing list