[Dovecot] about index cache

2007-08-13 Thread Joe Wong
Hi Timo, Is the dovecot index cache stored only standard header fields (from, to, cc, subject, content-type... )? What happen if there is non standard header, will it be cached? - Joe May the force be with you..

Re: [Dovecot] about index cache

2007-08-13 Thread Timo Sirainen
On Mon, 2007-08-13 at 19:24 +0800, Joe Wong wrote: > Hi Timo, > > Is the dovecot index cache stored only standard header > fields (from, to, cc, subject, content-type... )? What > happen if there is non standard header, will it be cached? Yes. Dovecot caches the headers that a client fetches. No

Re: [Dovecot] about index cache

2007-08-13 Thread Joe Wong
ot; <[EMAIL PROTECTED]> Cc: Sent: Monday, August 13, 2007 7:51 PM Subject: Re: [Dovecot] about index cache

Re: [Dovecot] about index cache

2007-08-13 Thread Joe Wong
ion. :-) - Joe - Original Message - From: "Timo Sirainen" <[EMAIL PROTECTED]> To: "Joe Wong" <[EMAIL PROTECTED]> Cc: "Dovecot Mailing List" Sent: Monday, August 13, 2007 11:06 PM Subject: Re: [Dovecot] about index cache

Re: [Dovecot] about index cache

2007-08-13 Thread Geert Hendrickx
On Mon, Aug 13, 2007 at 06:06:38PM +0300, Timo Sirainen wrote: > So Dovecot remembers what fields client is interested of and when header > is being parsed it caches everything that it knows the client wants. For how long does dovecot remember which headers? e.g. what happens if a user switches t

Re: [Dovecot] about index cache

2007-08-13 Thread Timo Sirainen
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.FIE

Re: [Dovecot] about index cache

2007-08-13 Thread Timo Sirainen
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

Re: [Dovecot] about index cache

2007-08-13 Thread Timo Sirainen
On Mon, 2007-08-13 at 17:23 +0200, Geert Hendrickx wrote: > On Mon, Aug 13, 2007 at 06:06:38PM +0300, Timo Sirainen wrote: > > So Dovecot remembers what fields client is interested of and when header > > is being parsed it caches everything that it knows the client wants. > > For how long does dov

Re: [Dovecot] about index cache

2007-08-13 Thread Joe Wong
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

Re: [Dovecot] about index cache

2007-08-14 Thread Timo Sirainen
On Tue, 2007-08-14 at 10:32 +0800, Joe Wong wrote: > Hi Timo, > > Am I right that if the client fetch body.peek[header], no caching of > header fields will be done? Right. signature.asc Description: This is a digitally signed message part