]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Hide "folder internal data" messages
authorTimo Sirainen <tss@iki.fi>
Sun, 20 Jun 2004 13:29:01 +0000 (16:29 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 20 Jun 2004 13:29:01 +0000 (16:29 +0300)
--HG--
branch : HEAD

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

index 47d499ad7b530fa4c383f04ebc81347cbba9f117..394c08f5216b03e314d4e7313ab9637ebf591b9f 100644 (file)
@@ -733,7 +733,8 @@ static int mbox_sync_loop(struct mbox_sync_context *sync_ctx,
                if (mbox_sync_read_index_syncs(sync_ctx, uid, &expunged) < 0)
                        return -1;
 
-               if (uid != 0) {
+               rec = NULL;
+               if (uid != 0 && !mail_ctx->pseudo) {
                        ret = mbox_sync_read_index_rec(sync_ctx, uid, &rec);
                        if (ret < 0)
                                return -1;
@@ -741,6 +742,7 @@ static int mbox_sync_loop(struct mbox_sync_context *sync_ctx,
                                /* this UID was already in index and it was
                                   expunged */
                                uid = 0;
+                               rec = NULL;
                        }
                }
                if (uid == 0) {
@@ -748,7 +750,6 @@ static int mbox_sync_loop(struct mbox_sync_context *sync_ctx,
                        mail_ctx->need_rewrite = TRUE;
                        mail_ctx->mail.uid = sync_ctx->next_uid++;
                        sync_ctx->prev_msg_uid = mail_ctx->mail.uid;
-                       rec = NULL;
                }
 
                if (!expunged) {
@@ -763,7 +764,7 @@ static int mbox_sync_loop(struct mbox_sync_context *sync_ctx,
                        return ret;
                }
 
-               if (!expunged) {
+               if (!expunged && !mail_ctx->pseudo) {
                        if (mbox_sync_update_index(sync_ctx, &mail_ctx->mail,
                                                   rec) < 0)
                                return -1;