From: Timo Sirainen Date: Thu, 13 Nov 2014 07:12:38 +0000 (+0200) Subject: dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter. X-Git-Tag: 2.2.16.rc1~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac51b12850a6740c2152e4e78cf2abe3aa620391;p=thirdparty%2Fdovecot%2Fcore.git dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter. This doesn't really do much because exporter shouldn't be writing anything, but it allows plugins to find out if transactions is coming from dsync. --- diff --git a/src/doveadm/dsync/dsync-mailbox-export.c b/src/doveadm/dsync/dsync-mailbox-export.c index aff3c0549d..767ec89523 100644 --- a/src/doveadm/dsync/dsync-mailbox-export.c +++ b/src/doveadm/dsync/dsync-mailbox-export.c @@ -363,7 +363,8 @@ dsync_mailbox_export_search(struct dsync_mailbox_exporter *exporter) wanted_headers = exporter->wanted_headers; } - exporter->trans = mailbox_transaction_begin(exporter->box, 0); + exporter->trans = mailbox_transaction_begin(exporter->box, + MAILBOX_TRANSACTION_FLAG_SYNC); search_ctx = mailbox_search_init(exporter->trans, search_args, NULL, wanted_fields, wanted_headers); mail_search_args_unref(&search_args);