Mercurial > dovecot > core-2.2
changeset 16556:af8ce0a84bb5
dsync: Fixed handling expunges when GUIDs aren't supported by the backend(s).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 26 Jun 2013 15:29:43 +0300 |
parents | 2dd27b0e7e49 |
children | 230f111056b4 |
files | src/doveadm/dsync/dsync-mailbox-import.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c Wed Jun 26 14:37:34 2013 +0300 +++ b/src/doveadm/dsync/dsync-mailbox-import.c Wed Jun 26 15:29:43 2013 +0300 @@ -1283,6 +1283,11 @@ /* verify hdr_hash if it exists */ if (change->hdr_hash == NULL) { i_assert(*importer->cur_guid == '\0'); + if (change->type == DSYNC_MAIL_CHANGE_TYPE_EXPUNGE) { + /* the message was already expunged, so we don't know + its header. return "unknown". */ + return -1; + } i_error("Mailbox %s: GUIDs not supported, " "sync with header hashes instead", mailbox_get_vname(importer->box));