[dovecot-cvs] dovecot/src/lib-storage/index index-mailbox-check.c, 1.9, 1.10

cras at dovecot.org cras at dovecot.org
Mon Aug 23 10:56:31 EEST 2004


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

Modified Files:
	index-mailbox-check.c 
Log Message:
Timeout/stat() based mailbox change checker didn't actually ever send
notifications.



Index: index-mailbox-check.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mailbox-check.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- index-mailbox-check.c	12 Jul 2004 11:35:51 -0000	1.9
+++ index-mailbox-check.c	23 Aug 2004 07:56:29 -0000	1.10
@@ -41,8 +41,10 @@
 	notify = ibox->notify_pending;
 	for (file = ibox->notify_files; file != NULL; file = file->next) {
 		if (stat(file->path, &st) == 0 &&
-		    file->last_stamp != st.st_mtime)
+		    file->last_stamp != st.st_mtime) {
 			file->last_stamp = st.st_mtime;
+			notify = TRUE;
+		}
 	}
 
 	if (notify) {



More information about the dovecot-cvs mailing list