6.0.0-beta1
7/29/25

[#5850] loop in PollFolders
Summary loop in PollFolders
Queue DIMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester vilius (at) lnk (dot) lt
Created 11/01/2007 (6480 days ago)
Due
Updated 11/02/2007 (6479 days ago)
Assigned
Resolved 11/02/2007 (6479 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/02/2007 04:25:37 PM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
My fix helped because in javascript land the boolean value of the 
string '0' is true.  When we cast to int before sending to javascript 
land, we now correctly skip setting the periodical poll because the 
boolean statement correctly returns false for the integer '0'.
11/02/2007 10:06:32 AM vilius (at) lnk (dot) lt Comment #4 Reply to this comment
menu_refresh_time in _horde_ prefs.php is 0 (never, integer value). I 
don't know why but your fix helped. I also var_dumped 
$prefs->getValue('menu_refresh_time'); and seems that is is set to: 
string(1) "0".
11/02/2007 05:00:50 AM Michael Slusarz Comment #3 Reply to this comment
What is your value of your 'menu_refresh_time' preference?  Also, I've 
added additional code to ensure we pass an integer to the page so see 
if that helps also.
11/01/2007 08:59:51 PM vilius (at) lnk (dot) lt Comment #2 Reply to this comment
Oh, and this happens in IE7, FF and Opera.
11/01/2007 08:59:13 PM vilius (at) lnk (dot) lt Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ loop in PollFolders
Queue ⇒ DIMP
State ⇒ Unconfirmed
Reply to this comment
For the past couple of months I get this strange bug in DIMP HEAD. It 
keeps checking for new mail over and over again until I close the 
browser. Apache log shows:



81.7.79.133 - - [01/Nov/2007:22:57:16 +0200] "POST 
/horde/dimp/imp.php/PollFolders HTTP/1.1" 200 198

81.7.79.133 - - [01/Nov/2007:22:57:16 +0200] "POST 
/horde/dimp/imp.php/PollFolders HTTP/1.1" 200 198

81.7.79.133 - - [01/Nov/2007:22:57:17 +0200] "POST 
/horde/dimp/imp.php/PollFolders HTTP/1.1" 200 198

81.7.79.133 - - [01/Nov/2007:22:57:17 +0200] "POST 
/horde/dimp/imp.php/PollFolders HTTP/1.1" 200 198



etc.



Any ideas how to debug this further?

Saved Queries