[dovecot-cvs] dovecot/src/master mail-process.c, 1.55, 1.56 master-settings.c, 1.61, 1.62 master-settings.h, 1.40, 1.41

cras at dovecot.org cras at dovecot.org
Sat Aug 28 19:39:56 EEST 2004


Update of /home/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv27818/src/master

Modified Files:
	mail-process.c master-settings.c master-settings.h 
Log Message:
Added mbox_dirty_syncs setting which delays re-reading the whole mbox when
it's changed.



Index: mail-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- mail-process.c	10 Jul 2004 17:24:08 -0000	1.55
+++ mail-process.c	28 Aug 2004 16:39:54 -0000	1.56
@@ -222,6 +222,8 @@
 		env_put("FULL_FILESYSTEM_ACCESS=1");
 	if (set->pop3_mails_keep_recent)
 		env_put("POP3_MAILS_KEEP_RECENT=1");
+	if (set->mbox_dirty_syncs)
+		env_put("MBOX_DIRTY_SYNCS=1");
 	(void)umask(set->umask);
 
 	env_put(t_strconcat("MBOX_READ_LOCKS=", set->mbox_read_locks, NULL));

Index: master-settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- master-settings.c	28 Aug 2004 13:25:42 -0000	1.61
+++ master-settings.c	28 Aug 2004 16:39:54 -0000	1.62
@@ -104,6 +104,7 @@
 	DEF(SET_STR, mbox_write_locks),
 	DEF(SET_INT, mbox_lock_timeout),
 	DEF(SET_INT, mbox_dotlock_change_timeout),
+	DEF(SET_BOOL, mbox_dirty_syncs),
 	DEF(SET_INT, umask),
 	DEF(SET_BOOL, mail_drop_priv_before_exec),
 
@@ -265,6 +266,7 @@
 	MEMBER(mbox_write_locks) "dotlock fcntl",
 	MEMBER(mbox_lock_timeout) 300,
 	MEMBER(mbox_dotlock_change_timeout) 30,
+	MEMBER(mbox_dirty_syncs) TRUE,
 	MEMBER(umask) 0077,
 	MEMBER(mail_drop_priv_before_exec) FALSE,
 

Index: master-settings.h
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- master-settings.h	28 Aug 2004 13:25:42 -0000	1.40
+++ master-settings.h	28 Aug 2004 16:39:54 -0000	1.41
@@ -75,6 +75,7 @@
 	const char *mbox_write_locks;
 	unsigned int mbox_lock_timeout;
 	unsigned int mbox_dotlock_change_timeout;
+	int mbox_dirty_syncs;
 	unsigned int umask;
 	int mail_drop_priv_before_exec;
 



More information about the dovecot-cvs mailing list