dovecot: mail_index_sync_have_any(): Refresh index to see if the...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 3 02:39:02 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/533bee708cc0
changeset: 7315:533bee708cc0
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 03 02:38:58 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 efff12e19514 -r 533bee708cc0 src/lib-index/mail-index-sync.c
--- a/src/lib-index/mail-index-sync.c	Mon Mar 03 02:36:02 2008 +0200
+++ b/src/lib-index/mail-index-sync.c	Mon Mar 03 02:38:58 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