[imp] possible bug in getDelimiter?

Jan Schneider jan@horde.org
Mon, 29 Jul 2002 16:51:43 +0200


Zitat von Jim Ursetto <jim@3e8.org>:

> Hi,
> 
> I installed IMP today with UW-IMAPD (mbox format) and noticed that 
> folder opening time increased dramatically whenever I specified a
> value for "folders".  For example, at login time, it would take about 10
> seconds to log in when just INBOX was present, but with folders set to
> 'mfolder/' the time tripled.  Also, my server hit the disk very hard.
> I dumped the protocol exchange:
> 
> 00000001 SELECT INBOX
> 00000002 LIST "" mfolder/*
> 00000003 LIST "" %
> 
> #3 seems problematic; it took 10 seconds.  #1 and #2 were
> near-instantaneous.
> Looking at the code, directive #3 is issued from getDelimiter in
> lib/Folder.php.  #3 does in fact return the hierarchy delimiter, but at
> the very high cost of parsing my entire home directory.  #3 is not
> issued when #2 returns an empty list, which explains the observed
> behavior.

This should already have been fixed because we only search for the mailboxes
in the folder you specified in the server configuration to get the
delimiter. What version of IMP are you using?

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft