[dev] Folder List

Rick Emery rick at emery.homelinux.net
Wed Jan 7 12:11:08 PST 2004


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> Quoting Rick Emery <rick at emery.homelinux.net>:
>
> | BTW, I noticed in the cvs log messages there were some references to
> c-client
> | imap-2002. I'm running a Red Hat 7.3 server with imap-2001a. Could that
> make
> | a difference?
>
> It might.  This line in lib/Tree.php checks for the presence of the
> LATT_HASCHILDREN/HASNOCHILDREN constant:
>
>  $this->_imapchildren = (bool) (($box->attributes & LATT_HASCHILDREN) ||
> ($box->attributes & LATT_HASNOCHILDREN));
>
> imap-2001a doesn't set either LATT_* constant in the 'attributes' return
> from
> getmailboxes().  imap-2002+ has one or the other set, so this should return
> true.
> I just committed the (bool) part to explicitly cast the result as a boolean
> -
> see if this helps out at all (or better yet, put a debug line in to see if
> this
> is indeed being set to false for you).

That line exists in the function getMailbox. I put a var_dump at the beginning
of the function and am getting nothing output; so it appears that, on my
server, that function never gets called. Very strange.

I'm looking for an imap-2002+ rpm for Red Hat 7.3 (what can I say, I'm lazy
;-). If I can't find one, I've already downloaded the source for imap-2002e.
I'll give that a try and see if it fixes anything.

Thanks for your help!

--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci



More information about the dev mailing list