]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fixed v2.0 forwards compatibility support. Expunges were handled wrong.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Oct 2009 22:31:08 +0000 (18:31 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Oct 2009 22:31:08 +0000 (18:31 -0400)
--HG--
branch : HEAD

src/lib-index/mail-index-view-sync.c

index b434544be992a371c6562f3f4dce3edc849cb010..efd3eb456afe0447b02f258eec0b89ee29e25cd7 100644 (file)
@@ -219,13 +219,13 @@ static bool view_sync_have_expunges(struct mail_index_view *view)
                }
                if ((hdr->type & MAIL_TRANSACTION_EXPUNGE_GUID) != 0) {
                        /* we have an expunge. see if it still exists. */
-                       if (have_existing_expunges(view, data, hdr->size)) {
+                       if (have_existing_guid_expunge(view, data, hdr->size)) {
                                have_expunges = TRUE;
                                break;
                        }
                } else if ((hdr->type & MAIL_TRANSACTION_EXPUNGE) != 0) {
                        /* we have an expunge. see if it still exists. */
-                       if (have_existing_guid_expunge(view, data, hdr->size)) {
+                       if (have_existing_expunges(view, data, hdr->size)) {
                                have_expunges = TRUE;
                                break;
                        }