]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Virtual sizes weren't exported properly with -I parameter.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 27 Sep 2016 10:50:51 +0000 (13:50 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 27 Sep 2016 10:52:24 +0000 (13:52 +0300)
Although they were incorrectly being exported with -T parameter. This makes
-I work without assert-crashing.

src/doveadm/dsync/dsync-mailbox-export.c

index 572b43ea188d90276cd94e0fc48af811abcff0e4..f078ee991d8f58cb998e80946627730456fb4f72 100644 (file)
@@ -310,7 +310,7 @@ search_add_save(struct dsync_mailbox_exporter *exporter, struct mail *mail)
                        received_timestamp = 1;
                }
        }
-       if (exporter->export_received_timestamps) {
+       if (exporter->export_virtual_sizes) {
                if (mail_get_virtual_size(mail, &virtual_size) < 0)
                        return dsync_mail_error(exporter, mail, "virtual-size");
                i_assert(virtual_size != (uoff_t)-1);