From: Timo Sirainen Date: Tue, 27 Sep 2016 10:50:51 +0000 (+0300) Subject: dsync: Virtual sizes weren't exported properly with -I parameter. X-Git-Tag: 2.2.26~222 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d8be3298359a54ceef0758838a0118f89d7227b;p=thirdparty%2Fdovecot%2Fcore.git dsync: Virtual sizes weren't exported properly with -I parameter. Although they were incorrectly being exported with -T parameter. This makes -I work without assert-crashing. --- diff --git a/src/doveadm/dsync/dsync-mailbox-export.c b/src/doveadm/dsync/dsync-mailbox-export.c index 572b43ea18..f078ee991d 100644 --- a/src/doveadm/dsync/dsync-mailbox-export.c +++ b/src/doveadm/dsync/dsync-mailbox-export.c @@ -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);