From d7abb52419f9aaf5de040778de3ea238b2431234 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 20 Jun 2004 16:29:01 +0300 Subject: [PATCH] Hide "folder internal data" messages --HG-- branch : HEAD --- src/lib-storage/index/mbox/mbox-sync.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib-storage/index/mbox/mbox-sync.c b/src/lib-storage/index/mbox/mbox-sync.c index 47d499ad7b..394c08f521 100644 --- a/src/lib-storage/index/mbox/mbox-sync.c +++ b/src/lib-storage/index/mbox/mbox-sync.c @@ -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; -- 2.47.3