[dovecot-cvs] dovecot/src/lib-storage/index index-sync.c, 1.61, 1.62

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:28:36 EEST 2007


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

Modified Files:
	index-sync.c 
Log Message:
Allow index_mailbox.is_recent() to be NULL if it's not needed.



Index: index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-sync.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- index-sync.c	28 Dec 2006 20:52:32 -0000	1.61
+++ index-sync.c	30 Mar 2007 18:28:33 -0000	1.62
@@ -121,7 +121,8 @@
 		}
 
 		if ((rec->flags & MAIL_RECENT) != 0 ||
-		    ibox->is_recent(ibox, rec->uid))
+		    (ibox->is_recent != NULL &&
+		     ibox->is_recent(ibox, rec->uid)))
                         index_mailbox_set_recent(ibox, seq1);
 	}
 



More information about the dovecot-cvs mailing list