6.0.0-beta1
7/4/25

[#5767] Subfolders not shown in IMP
Summary Subfolders not shown in IMP
Queue IMP
Queue Version 4.1.4-RC1
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester net (at) ac-nantes (dot) fr
Created 10/04/2007 (6483 days ago)
Due 10/04/2007 (6483 days ago)
Updated 09/06/2017 (2858 days ago)
Assigned
Resolved 10/04/2007 (6483 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/06/2017 08:17:41 AM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit 39ef8835f2201f36339e407c0d5ee29bd6379974
Author: bertrand Gugger <toggg@php.net>
Date:   Sun Nov 6 06:59:02 2005 +0000

     Option relative_enable default false for relative urls (Request #5767)
     Refuse ] , [ and ' in path part of the url, should be urlencoded


     git-svn-id: 
https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@200063 
c90b9560-bf6c-de11-be94-00142212c4b1

  Text/Wiki/Parse/BBCode/Url.php | 13 +++++++++----
  1 file changed, 9 insertions(+), 4 deletions(-)

http://github.com/horde/horde/commit/39ef8835f2201f36339e407c0d5ee29bd6379974
09/06/2017 08:17:39 AM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (master):

commit 3ad3ddd90e4f3e9ebb073d8e1f3414144a9cef88
Author: Firman Wandayandi <firman@php.net>
Date:   Tue Oct 25 05:15:30 2005 +0000

     Request #5767: relative [url] syntax not supported (e.g. 
[url=/contact.php])


     git-svn-id: 
https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@199141 
c90b9560-bf6c-de11-be94-00142212c4b1

  Text/Wiki/Parse/BBCode/Url.php | 1 +
  1 file changed, 1 insertion(+)

http://github.com/horde/horde/commit/3ad3ddd90e4f3e9ebb073d8e1f3414144a9cef88
10/11/2007 12:36:17 PM net (at) ac-nantes (dot) fr Comment #6 Reply to this comment
Thank you for your comments.

In fact, the problem comes from the php-imap library, modified for 
using cleartrust authentication with horde.

The function imap_getmailboxes does not give the "children" flag with 
the modified library...

Sorry for the "bug" !
10/05/2007 07:59:52 AM Gunnar Wrobel Comment #5 Reply to this comment

[Show Quoted Text - 9 lines]
The code correction cannot be correct since you revert the logic of 
the check. Horde expects that $this->_childrensupport has a value in 
any standard setup. Apparently it does not in your case. So you need 
to check WHY this is the case. You certainly can't revert the logic 
here by simply removing the "!". This would fail for all other Horde 
setups where the expectation actually holds true.
10/05/2007 06:37:46 AM net (at) ac-nantes (dot) fr Comment #4 Reply to this comment
If your IMAP server is advertising it supports the CHILDREN
extension, and then it doesn't, then it is your IMAP server that is
broken.
No problem with our IMAP server.

You set the State of this ticket "Not A Bug", but I insist.... it is a 
bug which was blocking our deployement of horde.

Thank you to verify the validity of our code correction.
10/04/2007 12:53:42 PM net (at) ac-nantes (dot) fr Comment #3 Reply to this comment
There is no problem with our IMAP server, neither IMAP protocol.

We have an older version of horde (installed in january 2007) which 
doesn't show the problem , despite she use the same imap server...

It is possible that you cannot reproduce the problem : for example, 
this problem doesn't occur at another site (Rectorat de Toulouse) with 
the same version and the same version of IMAP server.

I don't know why... But if I delete the "!" in the test "if 
(!empty($this->_childrensupport)" all works fine.

Thank you to verify the validity of our code correction !
10/04/2007 09:34:49 AM Michael Slusarz Comment #2
Priority ⇒ 1. Low
State ⇒ Not A Bug
Reply to this comment
If your IMAP server is advertising it supports the CHILDREN extension, 
and then it doesn't, then it is your IMAP server that is broken.
10/04/2007 07:20:30 AM net (at) ac-nantes (dot) fr Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Subfolders not shown in IMP
Due ⇒ 10/04/2007
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Subfolders are not shown in IMP : in the left window and in "folders"  tab.

The following modification in $HORDE/lib/Horde/IMAP/Tree.php permit 
the display of subfolders.

Thank you to apply this patch if it is correct...

For information, this bug was blocking the deployment of horde in our system.

Guy Paressant

Rectorat de Nantes - France



diff -u /usr/share/horde3/lib/Horde/IMAP/Tree.php.001 
/usr/share/horde3/lib/Horde/IMAP/Tree.php

--- /usr/share/horde3/lib/Horde/IMAP/Tree.php.001       2007-05-22 
11:39:35.000000000 +0200

+++ /usr/share/horde3/lib/Horde/IMAP/Tree.php   2007-10-04 
08:41:37.000000000 +0200

@@ -1092,7 +1092,7 @@

              /* Not all IMAP servers support the HASCHILDREN flag 
(like UW!) so

               * we need to skip this check if the IMAP server doesn't set

               * either HASCHILDREN or HASNOCHILDREN. */

-            if (!empty($this->_childrensupport) ||

+            if (empty($this->_childrensupport) ||

                  (is_null($this->_childrensupport) &&

                   ($elt['a'] & LATT_HASCHILDREN) ||

                   ($elt['a'] & LATT_HASNOCHILDREN))) {

Saved Queries