[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.45, 1.46

cras at procontrol.fi cras at procontrol.fi
Sun Jun 20 16:29:03 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv12694/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
Hide "folder internal data" messages



Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- mbox-sync.c	20 Jun 2004 13:03:02 -0000	1.45
+++ mbox-sync.c	20 Jun 2004 13:29:01 -0000	1.46
@@ -733,7 +733,8 @@
 		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 @@
 				/* this UID was already in index and it was
 				   expunged */
 				uid = 0;
+				rec = NULL;
 			}
 		}
 		if (uid == 0) {
@@ -748,7 +750,6 @@
 			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 @@
 			return ret;
 		}
 
-		if (!expunged) {
+		if (!expunged && !mail_ctx->pseudo) {
 			if (mbox_sync_update_index(sync_ctx, &mail_ctx->mail,
 						   rec) < 0)
 				return -1;



More information about the dovecot-cvs mailing list