Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6469:416973e853db HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 22 Sep 2007 17:52:27 +0300 |
parents | bca937328758 |
children | d2c37921f5f9 |
files | src/lib-storage/index/index-mailbox-check.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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_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);