]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
QRESYNC: Always send UID in FETCH sync replies.
authorTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 11:37:49 +0000 (14:37 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 11:37:49 +0000 (14:37 +0300)
--HG--
branch : HEAD

src/imap/imap-sync.c

index a6c9f36368319c4add62025ca562bc07aed68eae..2b07b858b82e394059d00e10f2677e7bc2c81628 100644 (file)
@@ -144,8 +144,11 @@ imap_sync_init(struct client *client, struct mailbox *box,
        ctx->messages_count = client->messages_count;
        i_array_init(&ctx->tmp_keywords, client->keywords.announce_count + 8);
 
-       if ((client->enabled_features & MAILBOX_FEATURE_QRESYNC) != 0)
+       if ((client->enabled_features & MAILBOX_FEATURE_QRESYNC) != 0) {
                i_array_init(&ctx->expunges, 128);
+               /* always send UIDs in FETCH replies */
+               ctx->imap_flags |= IMAP_SYNC_FLAG_SEND_UID;
+       }
 
        client_send_mailbox_flags(client, FALSE);
        /* send search updates the first time after sync is initialized.