]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix comparison to use virtual size instead of body virtual size
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 27 Jan 2017 07:41:36 +0000 (09:41 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 30 Jan 2017 09:46:54 +0000 (11:46 +0200)
Was forgotten on 7f1ecb14

src/lib-storage/index/index-mail.c

index 509d67e4a0358d29c2e526c77c3f38857b112652..7061d5f82ef7f1f650314b7e88c560d231d604f6 100644 (file)
@@ -485,7 +485,7 @@ bool index_mail_get_cached_virtual_size(struct index_mail *mail, uoff_t *size_r)
        /* if vsize is present and wanted for index, but missing from index
           add it to index. */
        if (vsize != NULL && *vsize == 0 &&
-           data->body_size.virtual_size < (uint32_t)-1) {
+           data->virtual_size < (uint32_t)-1) {
                uint32_t vsize = data->virtual_size+1;
                mail_index_update_ext(_mail->transaction->itrans, _mail->seq,
                                      mail->vsize_ext_id, &vsize, NULL);