Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6845:b2ec808acd76 HEAD
Don't try to set virtual size to uidlist for newly saved mails. They already
have the size in their filename.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 23 Nov 2007 12:18:08 +0200 |
parents | d3d0144f9be1 |
children | 61a764835d40 |
files | src/lib-storage/index/maildir/maildir-mail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* 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;