]> 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:50:51 +0000 (13:50 +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 d088d3d721fb1780d5ac6380ef0d2f1dcad1c9ac..924a65216304c0f95a986b3c57a99b36c40acbff 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);