From: Timo Sirainen Date: Sun, 17 Nov 2013 14:58:42 +0000 (+0200) Subject: dsync: Tell search that we want to fetch mail streams so prefetching works. X-Git-Tag: 2.2.8~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c954cd9d0702a9633a8f2f62bb2593b7e8c19574;p=thirdparty%2Fdovecot%2Fcore.git dsync: Tell search that we want to fetch mail streams so prefetching works. --- diff --git a/src/doveadm/dsync/dsync-mailbox-export.c b/src/doveadm/dsync/dsync-mailbox-export.c index e3326940e5..2088c851da 100644 --- a/src/doveadm/dsync/dsync-mailbox-export.c +++ b/src/doveadm/dsync/dsync-mailbox-export.c @@ -724,7 +724,9 @@ dsync_mailbox_export_body_search_init(struct dsync_mailbox_exporter *exporter) MAIL_FETCH_GUID | MAIL_FETCH_UIDL_BACKEND | MAIL_FETCH_POP3_ORDER | - MAIL_FETCH_RECEIVED_DATE, NULL); + MAIL_FETCH_RECEIVED_DATE | + MAIL_FETCH_STREAM_HEADER | + MAIL_FETCH_STREAM_BODY, NULL); mail_search_args_unref(&search_args); return array_count(&sarg->value.seqset) > 0 ? 1 : 0; }