Is there any way to disable the header hashing in dsync? I'm doing a one-time migration to Dovecot using imapc. The FETCHes for Date & Message-ID take a non-trivial amount of time and it's not clear to me if they have a function for a one-time migration. -- Richard
On 04 Mar 2016, at 07:47, Richard Laager <rlaager at wiktel.com> wrote:> > Is there any way to disable the header hashing in dsync? > > I'm doing a one-time migration to Dovecot using imapc. The FETCHes for Date & Message-ID take a non-trivial amount of time and it's not clear to me if they have a function for a one-time migration.That would be nice, yes. Does the attached patch happen to work? Compiles, but untested for now. -------------- next part -------------- A non-text attachment was scrubbed... Name: dsync.diff Type: application/octet-stream Size: 2801 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20160304/c6cd82e3/attachment.obj> -------------- next part --------------
On 03/04/2016 08:52 AM, Timo Sirainen wrote:> On 04 Mar 2016, at 07:47, Richard Laager <rlaager at wiktel.com> wrote: >> Is there any way to disable the header hashing in dsync?...> Does the attached patch happen to work? Compiles, but untested for now.It works with one more change on top of your patch: diff --git a/src/doveadm/dsync/dsync-mailbox-export.c b/src/doveadm/dsync/dsync-mailbox-export.c index 361cc55..0267f86 100644 --- a/src/doveadm/dsync/dsync-mailbox-export.c +++ b/src/doveadm/dsync/dsync-mailbox-export.c @@ -518,7 +518,7 @@ dsync_mailbox_export_init(struct mailbox *box, p_array_init(&exporter->expunged_seqs, pool, 16); p_array_init(&exporter->expunged_guids, pool, 16); - if (!exporter->mails_have_guids) + if (!exporter->mails_have_guids && !exporter->no_hdr_hashes) exporter->wanted_headers = dsync_mail_get_hash_headers(box); /* first scan transaction log and save any expunges and flag changes */ -- Richard