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 |
Many thanks for your help.
Greetings.
Sebastián Calero.
issues with c-client and IMAP servers before when they report one
thing, but do something different.
that the problem is that the name of the two folders begin equal
until the whitespace of 'test second'.
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.
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.
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.
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.
State ⇒ Not A Bug
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.
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
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}",
"%");':
[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.