dovecot-1.0: Dropped interval between mailbox change notifies from
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 22 17:55:18 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/afb48abd91c0
changeset: 5412:afb48abd91c0
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 22 17:55:14 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 f0ea8a04225d -r afb48abd91c0 src/lib-storage/index/index-mailbox-check.c
--- a/src/lib-storage/index/index-mailbox-check.c Sat Sep 22 17:37:46 2007 +0300
+++ b/src/lib-storage/index/index-mailbox-check.c Sat Sep 22 17:55:14 2007 +0300
@@ -58,8 +58,8 @@ static void notify_callback(void *contex
struct index_mailbox *ibox = context;
ibox->notify_last_check = ioloop_time;
- if ((unsigned int)(ioloop_time - ibox->notify_last_sent) >=
- ibox->min_notify_interval) {
+ /* don't notify more often than once a second */
+ if (ioloop_time > ibox->notify_last_sent) {
ibox->notify_last_sent = ioloop_time;
ibox->notify_pending = FALSE;
ibox->notify_callback(&ibox->box, ibox->notify_context);
More information about the dovecot-cvs
mailing list