dovecot: Dropped interval between mailbox change notifies from

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 22 17:52:30 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/416973e853db
changeset: 6469:416973e853db
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 22 17:52:27 2007 +0300
description:
Dropped interval between mailbox change notifies from
mailbox_idle_check_interval to 1 second. Some clients keep a long-running
IDLE connection and use other connections to check the new mail.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/index-mailbox-check.c |    4 ++--

diffs (14 lines):

diff -r bca937328758 -r 416973e853db src/lib-storage/index/index-mailbox-check.c
--- a/src/lib-storage/index/index-mailbox-check.c	Sat Sep 22 17:36:38 2007 +0300
+++ b/src/lib-storage/index/index-mailbox-check.c	Sat Sep 22 17:52:27 2007 +0300
@@ -55,8 +55,8 @@ static void notify_callback(struct index
 static void notify_callback(struct index_mailbox *ibox)
 {
 	ibox->notify_last_check = ioloop_time;
-	if ((unsigned int)(ioloop_time - ibox->notify_last_sent) >=
-	    ibox->box.notify_min_interval) {
+	/* don't notify more often than once a second */
+	if ((unsigned int)(ioloop_time - ibox->notify_last_sent) > 0) {
 		ibox->notify_last_sent = ioloop_time;
                 ibox->notify_pending = FALSE;
 		ibox->box.notify_callback(&ibox->box, ibox->box.notify_context);


More information about the dovecot-cvs mailing list