]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fixed resizing header when old&new sizes were the same when aligned.
authorTimo Sirainen <tss@iki.fi>
Mon, 27 May 2013 17:44:56 +0000 (20:44 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 27 May 2013 17:44:56 +0000 (20:44 +0300)
src/lib-index/mail-index-sync-ext.c

index d9f034c9830f28e9a18a1afba97d4b579d600ca5..68c2a2df302209de831ca87eb563f89f08155707 100644 (file)
@@ -289,6 +289,13 @@ sync_ext_resize(const struct mail_transaction_ext_intro *u,
                                   new_size - old_size);
                ext->hdr_size = u->hdr_size;
                modified = TRUE;
+       } else {
+               if (ext->hdr_size != u->hdr_size) {
+                       /* aligned sizes were the same, but the actual sizes
+                          had changed */
+                       ext->hdr_size = u->hdr_size;
+                       modified = TRUE;
+               }
        }
 
        if (ext->record_align < u->record_align ||