[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.84, 1.85 index-storage.h, 1.99, 1.100

cras at dovecot.org cras at dovecot.org
Sun Apr 9 18:50:28 EEST 2006


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

Modified Files:
	index-storage.c index-storage.h 
Log Message:
Added MAILBOX_OPEN_KEEP_LOCKED flag to mailbox opening and implemented it
for mbox and maildir. It keeps the mailbox locked the whole time until
mailbox_close() is called.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- index-storage.c	26 Feb 2006 11:24:38 -0000	1.84
+++ index-storage.c	9 Apr 2006 15:50:25 -0000	1.85
@@ -350,6 +350,7 @@
 
 	ibox->readonly = (flags & MAILBOX_OPEN_READONLY) != 0;
 	ibox->keep_recent = (flags & MAILBOX_OPEN_KEEP_RECENT) != 0;
+	ibox->keep_locked = (flags & MAILBOX_OPEN_KEEP_LOCKED) != 0;
 	ibox->index = index;
 
 	ibox->next_lock_notify = time(NULL) + LOCK_NOTIFY_INTERVAL;

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- index-storage.h	18 Jan 2006 23:14:44 -0000	1.99
+++ index-storage.h	9 Apr 2006 15:50:25 -0000	1.100
@@ -74,6 +74,7 @@
 
 	unsigned int readonly:1;
 	unsigned int keep_recent:1;
+	unsigned int keep_locked:1;
 	unsigned int recent_flags_synced:1;
 	unsigned int sent_diskspace_warning:1;
 	unsigned int sent_readonly_flags_warning:1;



More information about the dovecot-cvs mailing list