[Tickets #1465] NEW: recursive IMAP stat() caused by Session.php

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Mar 1 14:50:54 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1465
-----------------------------------------------------------------------
 Ticket             | 1465
 Created By         | mp at xmission.com
 Summary            | recursive IMAP stat() caused by Session.php
 Queue              | IMP
 Version            | 4.0.2
 State              | Unconfirmed
 Priority           | 3. High
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


mp at xmission.com (2005-03-01 14:50) wrote:

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.







More information about the bugs mailing list