dovecot: Don't try to set virtual size to uidlist for newly save...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 23 12:18:12 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/b2ec808acd76
changeset: 6845:b2ec808acd76
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 23 12:18:08 2007 +0200
description:
Don't try to set virtual size to uidlist for newly saved mails. They already
have the size in their filename.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-mail.c |    2 +-

diffs (12 lines):

diff -r d3d0144f9be1 -r b2ec808acd76 src/lib-storage/index/maildir/maildir-mail.c
--- a/src/lib-storage/index/maildir/maildir-mail.c	Fri Nov 23 12:15:32 2007 +0200
+++ b/src/lib-storage/index/maildir/maildir-mail.c	Fri Nov 23 12:18:08 2007 +0200
@@ -264,7 +264,7 @@ maildir_handle_virtual_size_caching(stru
 
 	/* 1 = pop3-only, 0 = mixed, -1 = no pop3 */
 	pop3_state = maildir_get_pop3_state(mail);
-	if (pop3_state >= 0) {
+	if (pop3_state >= 0 && mail->mail.mail.uid != 0) {
 		/* if virtual size is wanted permanently, store it to uidlist
 		   so that in case cache file gets lost we can get it quickly */
 		mail->data.dont_cache_fetch_fields |= MAIL_FETCH_VIRTUAL_SIZE;


More information about the dovecot-cvs mailing list