6.0.0-beta1
12/22/25

[#1465] recursive IMAP stat() caused by Session.php
Summary recursive IMAP stat() caused by Session.php
Queue IMP
Queue Version 4.0.2
Type Bug
State Not A Bug
Priority 3. High
Owners
Requester mp (at) xmission (dot) com
Created 03/01/2005 (7601 days ago)
Due
Updated 03/04/2005 (7598 days ago)
Assigned
Resolved 03/01/2005 (7601 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/04/2005 09:52:05 AM Jan Schneider Comment #3 Reply to this comment
03/01/2005 11:05:54 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
As discussed on IRC, this is necessary to determine the delimiter. To 
work around that we need to implement the NAMESPACE command.
03/01/2005 10:50:53 PM mp (at) xmission (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ recursive IMAP stat() caused by Session.php
Queue ⇒ IMP
Reply to this comment
When Horde is set to use IMP for authentication, an initial login 
sends a LIST command to the IMAP server for all of ~/ . The IMAP 
server is then forced to recursivly stat() and list every single file 
in the users home directory. This causes huge decreases in speed upon 
login, in some cases taking 2-3 minutes for a large home directory. 
After initial login, this problem does not appear to reoccur.



I was able to work around this error by commenting out line 250 and 
252 in imp/lib/Session.php:



//            $box = @imap_getmailboxes($_SESSION['imp']['stream'], 
IMP::serverString(), '');



and



  //               $box = 
@imap_getmailboxes($_SESSION['imp']['stream'], IMP::serverString(), 
'INBOX');



So far as I can tell, no functinoality is lost by removing these two 
lines, but their inclusion causes _severe_ performance problems for 
UW-IMAP users.




Saved Queries