[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.122, 1.123 mbox-storage.h, 1.38, 1.39

cras at dovecot.org cras at dovecot.org
Sat Oct 1 12:00:44 EEST 2005


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

Modified Files:
	mbox-storage.c mbox-storage.h 
Log Message:
Don't try to check for notifications when mbox was opened from input stream.



Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- mbox-storage.c	30 Sep 2005 18:55:01 -0000	1.122
+++ mbox-storage.c	1 Oct 2005 09:00:42 -0000	1.123
@@ -597,6 +597,7 @@
 	i_stream_ref(input);
 	mbox->mbox_file_stream = input;
 	mbox->mbox_readonly = TRUE;
+	mbox->no_mbox_file = TRUE;
 
 	mbox->path = "(read-only mbox stream)";
 	return &mbox->ibox.box;
@@ -1004,7 +1005,7 @@
 
 	if (callback == NULL)
 		index_mailbox_check_remove_all(&mbox->ibox);
-	else
+	else if (!mbox->no_mbox_file)
 		index_mailbox_check_add(&mbox->ibox, mbox->path);
 }
 

Index: mbox-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mbox-storage.h	8 Apr 2005 14:32:52 -0000	1.38
+++ mbox-storage.h	1 Oct 2005 09:00:42 -0000	1.39
@@ -40,6 +40,7 @@
 
 	uint32_t mbox_ext_idx;
 
+	unsigned int no_mbox_file:1;
 	unsigned int mbox_sync_dirty:1;
 	unsigned int mbox_do_dirty_syncs:1;
 	unsigned int mbox_very_dirty_syncs:1;



More information about the dovecot-cvs mailing list