<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Rate limit polling for new mail notifications</title> 
  <pubDate>Thu, 09 Apr 2026 19:39:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12705</link> 
  <atom:link rel="self" type="application/rss+xml" title="Rate limit polling for new mail notifications" href="https://bugs.horde.org/ticket/12705/rss" /> 
  <description>Rate limit polling for new mail notifications</description> 
 
   
   
  <item> 
   <title>In my IMAP account, I have a fair number of folders that nee</title> 
   <description>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 &#039;Display notification when new mail arrives?&#039; 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&#039;t cached results).

It would be nice if there was a preference that would allow to prevent polling for new messages if less than &#039;X&#039; 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.</description> 
   <pubDate>Fri, 20 Sep 2013 09:51:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t80780</link> 
  </item> 
   
  <item> 
   <title>&gt; In my IMAP account, I have a fair number of folders that n</title> 
   <description>&gt; In my IMAP account, I have a fair number of folders that need to be 
&gt; polled for new messages (about 25) as I use Sieve to sort messages 
&gt; upon arrival. This means checking for new messages is a relatively 
&gt; expensive operation.

What does Sieve have to do with this?  Sieve is independent of polling.

&gt; When &#039;Display notification when new mail arrives?&#039; in the Mail 
&gt; preferences is selected, it looks like this check is performed for 
&gt; each POST request. This means that if multiple POST requests are send 
&gt; more or less simultaneously, this check is run many times in 
&gt; parallel. For instance, if in a month view of Kronolith I move to the 
&gt; next month, 13 POST requests are fired off within a few milliseconds 
&gt; (in my agenda there are six calenders, five address books, one 
&gt; tasklist and one holidays). Each of these will run
&gt;
&gt;     horde/services/ajax.php/kronolith/listEvents

That shouldn&#039;t happen.  For a task such as this in kronolith, we should really be pooling all of these into a single request.  But that&#039;s a separate enhancement ticket...

&gt; All in all this takes approximately 10 seconds, during which time the 
&gt; check for new messages runs 13 times (pretty much in parallel). If I 
&gt; disable the new mail notifications, the same action takes less than 2 
&gt; seconds (I made sure these aren&#039;t cached results).
&gt;
&gt; It would be nice if there was a preference that would allow to 
&gt; prevent polling for new messages if less than &#039;X&#039; seconds have passed 
&gt; since the last poll was started. This would prevent running polls in 
&gt; parallel, fighting for attention from Dovecot and which in the end is 
&gt; just a waste of resources.

We should probably just use the &quot;refresh&quot; interval that currently exists.

This seems a reasonable feature to put into 6.2.</description> 
   <pubDate>Tue, 01 Oct 2013 18:51:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t80854</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; In my IMAP account, I have a fair number of folders that </title> 
   <description>&gt;&gt; In my IMAP account, I have a fair number of folders that need to be
&gt;&gt; polled for new messages (about 25) as I use Sieve to sort messages
&gt;&gt; upon arrival. This means checking for new messages is a relatively
&gt;&gt; expensive operation.
&gt;
&gt; What does Sieve have to do with this?  Sieve is independent of polling.

I tried to provide some context why I&#039;m polling this many mailboxes. Most of my users don&#039;t use filters at all, in which case they are only subscribed to the INBOX and this doesn&#039;t seem to be a problem.

&gt;&gt; When &#039;Display notification when new mail arrives?&#039; in the Mail
&gt;&gt; preferences is selected, it looks like this check is performed for
&gt;&gt; each POST request. This means that if multiple POST requests are send
&gt;&gt; more or less simultaneously, this check is run many times in
&gt;&gt; parallel. For instance, if in a month view of Kronolith I move to the
&gt;&gt; next month, 13 POST requests are fired off within a few milliseconds
&gt;&gt; (in my agenda there are six calenders, five address books, one
&gt;&gt; tasklist and one holidays). Each of these will run
&gt;&gt;
&gt;&gt;     horde/services/ajax.php/kronolith/listEvents
&gt;
&gt; That shouldn&#039;t happen.  For a task such as this in kronolith, we 
&gt; should really be pooling all of these into a single request.  But 
&gt; that&#039;s a separate enhancement ticket...

Will this be tracked in this ticket or do I need to create an additional one?

&gt;&gt; All in all this takes approximately 10 seconds, during which time the
&gt;&gt; check for new messages runs 13 times (pretty much in parallel). If I
&gt;&gt; disable the new mail notifications, the same action takes less than 2
&gt;&gt; seconds (I made sure these aren&#039;t cached results).
&gt;&gt;
&gt;&gt; It would be nice if there was a preference that would allow to
&gt;&gt; prevent polling for new messages if less than &#039;X&#039; seconds have passed
&gt;&gt; since the last poll was started. This would prevent running polls in
&gt;&gt; parallel, fighting for attention from Dovecot and which in the end is
&gt;&gt; just a waste of resources.
&gt;
&gt; We should probably just use the &quot;refresh&quot; interval that currently exists.

Suits me fine.

&gt; This seems a reasonable feature to put into 6.2.

Great!</description> 
   <pubDate>Tue, 01 Oct 2013 19:43:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t80859</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; That shouldn&#039;t happen.  For a task such as this in kronol</title> 
   <description>&gt;&gt; That shouldn&#039;t happen.  For a task such as this in kronolith, we
&gt;&gt; should really be pooling all of these into a single request.  But
&gt;&gt; that&#039;s a separate enhancement ticket...
&gt;
&gt; Will this be tracked in this ticket or do I need to create an additional one?

#12729</description> 
   <pubDate>Tue, 01 Oct 2013 20:08:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t80860</link> 
  </item> 
   
  <item> 
   <title>IMP 6.2.


commit 7f8674eceac1b8d878857a6cadced4e1882fc0b</title> 
   <description>IMP 6.2.


commit 7f8674eceac1b8d878857a6cadced4e1882fc0bf
Author: Michael M Slusarz &lt;slusarz at horde.org&gt;
Date:   Tue Nov 12 12:15:51 2013 -0700

    [mms] Add rate limiting to new mail notification alerts to prevent flooding of the remote mail server (Request #12705).

 imp/docs/CHANGES                                         |    2 +
 imp/lib/Notification/Handler/Decorator/NewmailNotify.php |   30 +++++++++----
 imp/package.xml                                          |    1 +
 3 files changed, 24 insertions(+), 9 deletions(-)

http://github.com/horde/horde/commit/7f8674eceac1b8d878857a6cadced4e1882fc0bf
http://git.horde.org/horde-git/-/commit/7f8674eceac1b8d878857a6cadced4e1882fc0bf</description> 
   <pubDate>Tue, 12 Nov 2013 19:19:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t81418</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 7f8674eceac1</title> 
   <description>Changes have been made in Git (master):

commit 7f8674eceac1b8d878857a6cadced4e1882fc0bf
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Nov 12 12:15:51 2013 -0700

    [mms] Add rate limiting to new mail notification alerts to prevent flooding of the remote mail server (Request #12705).

 imp/docs/CHANGES                                   |    2 +
 .../Handler/Decorator/NewmailNotify.php            |   30 ++++++++++++++------
 imp/package.xml                                    |    1 +
 3 files changed, 24 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/7f8674eceac1b8d878857a6cadced4e1882fc0bf</description> 
   <pubDate>Tue, 17 Dec 2013 11:17:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12705#t81826</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
