On Fri, 2006-01-27 at 15:28 +1100, grant beattie wrote:
On Thu, Jan 26, 2006 at 09:56:27PM +0200, Timo Sirainen wrote:
The difference is that with Dovecot LIST command is returning the messages' exact size with CR+LF linefeeds. I didn't actually know that this wasn't required with POP3.
Now, the simplest fix in your case would be to just make Dovecot return the message's physical size with stat(). But I'm not sure if this is a good default behavior. The physical size isn't used by IMAP, so if the mailbox has both POP3 and IMAP access, it needs to store both physical and virtual sizes to cache file..
ah, excellent!
I suppose this would also make it possible to read the S=<size> part of maildir filenames by simply reading the directory, rather than stat()ing all the files?
I expect this would siginificantly reduce disk IO.
Yes, it already uses S= from filename if it's there.