]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fix for mboxes with pseudo header mail
authorTimo Sirainen <tss@iki.fi>
Fri, 2 Jul 2004 12:14:13 +0000 (15:14 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 2 Jul 2004 12:14:13 +0000 (15:14 +0300)
--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-sync.c

index 3e0867a7445c5ecab59d5c47ef94c7414c937bc3..4ed8ed771793de6ee501fdafaa0ed64e1216dfe7 100644 (file)
@@ -738,6 +738,11 @@ mbox_sync_seek_to_uid(struct mbox_sync_context *sync_ctx, uint32_t uid)
 
         /* set to -1, since it's always increased later */
        sync_ctx->seq = seq1-1;
+       if (sync_ctx->seq == 0 && offset != 0) {
+               /* this mbox has pseudo mail which contains the X-IMAP header */
+               sync_ctx->seq++;
+       }
+
         sync_ctx->idx_seq = seq1;
        sync_ctx->dest_first_mail = sync_ctx->seq == 0;
        if (istream_raw_mbox_seek(sync_ctx->input, offset) < 0) {