]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Tell search that we want to fetch mail streams so prefetching works.
authorTimo Sirainen <tss@iki.fi>
Sun, 17 Nov 2013 14:58:42 +0000 (16:58 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 17 Nov 2013 14:58:42 +0000 (16:58 +0200)
src/doveadm/dsync/dsync-mailbox-export.c

index e3326940e5032ee559d6e4f86a41a21f23dbae4c..2088c851da9418d187d8f144cf9fcf850d353323 100644 (file)
@@ -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;
 }