dovecot-1.1: mail_index_sync_have_any(): Refresh index to see if...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 3 02:38:58 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/fa8e8bcc85a5
changeset: 7320:fa8e8bcc85a5
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 03 02:38:55 2008 +0200
description:
mail_index_sync_have_any(): Refresh index to see if there are any new unseen
changes before returning anything.

diffstat:

1 file changed, 2 insertions(+)
src/lib-index/mail-index-sync.c |    2 ++

diffs (12 lines):

diff -r d76c54e092f5 -r fa8e8bcc85a5 src/lib-index/mail-index-sync.c
--- a/src/lib-index/mail-index-sync.c	Mon Mar 03 02:35:59 2008 +0200
+++ b/src/lib-index/mail-index-sync.c	Mon Mar 03 02:38:55 2008 +0200
@@ -525,6 +525,8 @@ bool mail_index_sync_have_any(struct mai
 	struct mail_index_view *view;
 	bool ret;
 
+	(void)mail_index_refresh(index);
+
 	view = mail_index_view_open(index);
 	ret = mail_index_sync_view_have_any(view, flags);
 	mail_index_view_close(&view);


More information about the dovecot-cvs mailing list