From ac51b12850a6740c2152e4e78cf2abe3aa620391 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 13 Nov 2014 09:12:38 +0200 Subject: [PATCH] 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. --- src/doveadm/dsync/dsync-mailbox-export.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.3