On Wed, 2005-12-07 at 07:35 +1100, grant beattie wrote:
Actually since the message size needs to be read anyway (unless you can get it to be written as W=1234 in maildir file), the X-UIDL lookup shouldn't cost anything since it's written to cache file immediately. Except I'm not sure if Dovecot's caching code currently is smart enough to save the X-UIDL header while saving message sizes..
ooh, so W=<size> will optimize away having to read the whole message? that's great! I am currently using S=<size> (for Exim quota calculation purposes), but I will switch to W= if it will reduce disk IO :)
Yes, but you shouldn't just fake W= with wrong size or things can break.
S= is used for the file's actual size. W= is used for the "virtual size", the size that the message would have with CR+LF linefeeds. So you could have both.