folders.php hangs

staffan@ulfberg.se staffan@ulfberg.se
Tue, 12 Feb 2002 01:50:10 +0100 (CET)


Hello!

I started using IMP a few days back, and almost everything is working
just fine.  When I go to the "Folders" page, however, folders.php, or
rather, Tree.php, hangs.

I'm running the FreeBSD imp port called "imp-devel-3.0_1", using the
cyrus IMAP server with the 'imap/ssl/novalidate-cert' protocol on port
993.

I added some trace output in the code:

function expandAllFolders()
{
 Horde::logMessage("expandAllFolders", __FILE__, __LINE__, LOG_DEBUG);
 $mailbox = $this->head();
 while (isset($mailbox) && is_array($mailbox)) {
   Horde::logMessage("expandAllFolders loop", __FILE__, __LINE__, LOG_DEBUG);
   if ($this->hasChildren($mailbox) && !$this->isOpen($mailbox)) {
     Horde::logMessage("expand", __FILE__, __LINE__, LOG_DEBUG);
     $this->expand($this->server . $mailbox['value']);
   }
   $mailbox = $this->next();
 }
}

This produces the following in my log file:

Feb 12 01:24:32 HORDE [debug] [imp] Folders Place 1 [on line 80 of "/usr/local/www/horde/imp/folders.php"]
Feb 12 01:24:32 HORDE [debug] [imp] initializeTree A [on line 52 of "/usr/local/www/horde/imp/folders.php"]
Feb 12 01:24:32 HORDE [debug] [imp] expandAllFolders [on line 71 of "/usr/local/www/horde/imp/lib/Tree.php"]
Feb 12 01:24:32 HORDE [debug] [imp] expandAllFolders loop [on line 74 of "/usr/local/www/horde/imp/lib/Tree.php"]
Feb 12 01:24:32 HORDE [debug] [imp] expandAllFolders loop [on line 74 of "/usr/local/www/horde/imp/lib/Tree.php"]
Feb 12 01:24:32 HORDE [debug] [imp] expandAllFolders loop [on line 74 of "/usr/local/www/horde/imp/lib/Tree.php"]

The last line is repeated indefinitely, so there's not much question
about where the program hangs.

Any insights?  I'd be happy to follow any debug suggestions anyone
might have, but since I'm a complete PHP newbie I can't promise I'll
be able to do anything complicated:(


BTW, can someone enlighten me about the relationship between the
$conf['auth']['params']['dsn'] setting i config/horde.php, and the
$servers['imap'] array in imp/config/servers.php?  It seems the IMAP
server is listed twice.  If (as I believe) the first setting is used
for authentication to horde, and the second one for getting mail by
IMP, how do I tell Horde to use SSL when connecting to the IMAP
server?

TIA,

Staffan