[Dovecot] about index cache
Timo Sirainen
tss at iki.fi
Mon Aug 13 18:06:38 EEST 2007
On Mon, 2007-08-13 at 22:22 +0800, Joe Wong wrote:
> Hi Timo,
>
> I see. So, if the client fetch the From field at the first time and then
> fetch the subject field at the second time, the index.cache file will be
> updated twice?
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)
So Dovecot remembers what fields client is interested of and when header
is being parsed it caches everything that it knows the client wants.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070813/b0c61f7f/attachment.bin
More information about the dovecot
mailing list