6.0.0-git
2019-07-18

[#14937] listMailboxes missing status information
Summary listMailboxes missing status information
Queue Horde Framework Packages
Type Bug
State Unconfirmed
Priority 2. Medium
Owners
Requester mariusz.goch (at) spacja (dot) com
Created 2019-07-12 (6 days ago)
Due
Updated 2019-07-12 (6 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
2019-07-12 20:11:45 mariusz (dot) goch (at) spacja (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ listMailboxes missing status information
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: socket_listmailboxes.patch Download
Reply to this comment
When fetching all mailboxes with query containing wildcards no status 
information is being returned.
Problem exists when server has capability LIST-STATUS.
When status information is being prepared patterns are used but not 
actual mailbox names. So it works when I search 'INBOX' but not with 
'*'.

$mailboxes = $imapClient->listMailboxes('*', 
Horde_Imap_Client::MBOX_ALL, array(
                        'attributes'        => true,
                        'special_use'        => true,
                        'status'                => Horde_Imap_Client::STATUS_MESSAGES,
                        'sort'                        => true
                ));

Forcing to use returned names does the job.

I've attached working patch to Socket.php

Saved Queries