[Tickets #12705] Re: Rate limit polling for new mail notifications
noreply at bugs.horde.org
noreply at bugs.horde.org
Mon Sep 30 04:45:49 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12705
------------------------------------------------------------------------------
Ticket | 12705
Updated By | asa at isac.gov.in <asa at isac.gov.in>
Summary | Rate limit polling for new mail notifications
Queue | IMP
Version | 6.1.4
Type | Enhancement
State | New
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
arjen+horde at de-korte.org (2013-09-20 09:51) wrote:
In my IMAP account, I have a fair number of folders that need to be
polled for new messages (about 25) as I use Sieve to sort messages
upon arrival. This means checking for new messages is a relatively
expensive operation.
When 'Display notification when new mail arrives?' in the Mail
preferences is selected, it looks like this check is performed for
each POST request. This means that if multiple POST requests are send
more or less simultaneously, this check is run many times in parallel.
For instance, if in a month view of Kronolith I move to the next
month, 13 POST requests are fired off within a few milliseconds (in my
agenda there are six calenders, five address books, one tasklist and
one holidays). Each of these will run
horde/services/ajax.php/kronolith/listEvents
All in all this takes approximately 10 seconds, during which time the
check for new messages runs 13 times (pretty much in parallel). If I
disable the new mail notifications, the same action takes less than 2
seconds (I made sure these aren't cached results).
It would be nice if there was a preference that would allow to prevent
polling for new messages if less than 'X' seconds have passed since
the last poll was started. This would prevent running polls in
parallel, fighting for attention from Dovecot and which in the end is
just a waste of resources.
More information about the bugs
mailing list