6.0.0-alpha12
6/6/25

[#4857] In certain conditions in folders.php the folders aren't showing
Summary In certain conditions in folders.php the folders aren't showing
Queue IMP
Queue Version FRAMEWORK_3
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester scalero (at) datadec (dot) es
Created 01/09/2007 (6723 days ago)
Due 01/09/2007 (6723 days ago)
Updated 01/12/2007 (6720 days ago)
Assigned
Resolved 01/09/2007 (6723 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/12/2007 07:36:26 AM scalero (at) datadec (dot) es Comment #7 Reply to this comment
I'm totally in agreement with you.



Many thanks for your help.



Greetings.



Sebastián Calero.
01/12/2007 05:42:29 AM Michael Slusarz Comment #6 Reply to this comment
Yes my Cyrus server supports the CHILDREN flag in response to CAPABILITY.
I wasn't saying that was your issue.  I was saying that I have seen 
issues with c-client and IMAP servers before when they report one 
thing, but do something different.
  I suspect that the problem isn't  the IMAP server. Also I suspect
that the problem is that the name of the two folders begin equal
until the whitespace of 'test second'.
No, the problem is definitely with either your IMAP or c-client.  The 
first instance of 'test' reports an attribute mask of 64 -- which 
corresponds to the constant:



LATT_HASNOCHILDREN (long) 0x40 = 64



So imap or c-client is reporting that test has no children.  So 
obviously, we are not going to continue polling that folder for 
children since it is reporting it doesn't contain any.
01/11/2007 07:20:20 AM scalero (at) datadec (dot) es Comment #5 Reply to this comment
Yes my Cyrus server supports the CHILDREN flag in response to CAPABILITY.



  I suspect that the problem isn't  the IMAP server. Also I suspect 
that the problem is that the name of the two folders begin equal until 
the whitespace of 'test second'.





Greetings.



Sebastián Calero.
01/10/2007 04:37:34 PM Michael Slusarz Comment #4 Reply to this comment
I've seen similar behavior before - IIRC someone once reported a 
problem where their IMAP server advertised it supported the CHILDREN 
flag, but the children flag was not set properly on folders with 
children.  Similar to your issue, we have to trust what your IMAP 
server (and c-client) is telling us.  And garbage in = garbage out.
01/10/2007 08:07:05 AM scalero (at) datadec (dot) es Comment #3 Reply to this comment
Then this behavior is happening only to me?  Although this is not a 
bug of IMP.



I use Cyrus 2.2.10



And I open a PHP bug in case it can help somebody:



     http://bugs.php.net/bug.php?id=40087





Greetings.



Sebastián Calero.
01/09/2007 04:39:05 PM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
As you said, this is strange but is not an error in IMP.  If the 
imap_functions() are returning the same folder with different 
attributes, there's nothing we can do to fix this.  This is either a 
PHP/c-client issue or an IMAP server issue.
01/09/2007 02:25:26 PM scalero (at) datadec (dot) es Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ In certain conditions in folders.php the folders aren't showing
Due ⇒ 01/09/2007
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Something very strange is happening me when I create a structure of 
folders like the following:



        INBOX

          test

            test.aaa

            test.bbb

          test second

            test second.ccc

            test second.ddd



In I logout and login again and go to the folders.php I see only:

        INBOX

          test

          test second

            test second.ccc

            test second.ddd



The folders 'test.aaa' and 'test.bbb' have disappeared. But in the 
select(id=mailbox) of the IMP menu they continue appearing!?





I use the following versions:

Horde                3.1.3

IMP                H3 (4.1.3)

PHP                4.4.4

c-client        imap-2004g





I have tried to update c-client to the version 'imap-2006d' but I have 
had this problem: http://bugs.php.net/bug.php?id=39401





In case it can help you this is the exit(var_dump) of the function 
'imap_getmailboxes($this->_getStream(), "{localhost:1143/imap/notls}", 
"%");':
array(4) {

   [0]=>

   object(stdClass)(3) {

     ["name"]=>

     string(32) "{localhost:1143/imap/notls}INBOX"

     ["attributes"]=>

     int(1)

     ["delimiter"]=>

     string(1) "."

   }

   [1]=>

   object(stdClass)(3) {

     ["name"]=>

     string(31) "{localhost:1143/imap/notls}test"

     ["attributes"]=>

     int(64)

     ["delimiter"]=>

     string(1) "."

   }

   [2]=>

   object(stdClass)(3) {

     ["name"]=>

     string(38) "{localhost:1143/imap/notls}test second"

     ["attributes"]=>

     int(32)

     ["delimiter"]=>

     string(1) "."

   }

   [3]=>

   object(stdClass)(3) {

     ["name"]=>

     string(31) "{localhost:1143/imap/notls}test"

     ["attributes"]=>

     int(34)

     ["delimiter"]=>

     string(1) "."

   }

}

<<<<<<



I see the folder "test" appears two times with different attributes.





Any suggestion?





Greetings.





Sebastián Calero.

Saved Queries