[Tickets #14937] listMailboxes missing status information

[email protected] Fri, 12 Jul 2019 20:11:46 +0000
Newsgroups gmane.comp.horde.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14937
------------------------------------------------------------------------------
  Ticket             | 14937
  Created By         | [email protected]
  Summary            | listMailboxes missing status information
  Queue              | Horde Framework Packages
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


[email protected] (2019-07-12 20:11) wrote:

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



[email protected] (2019-07-12 20:11) uploaded:  
socket_listmailboxes.patch

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=socket_listmailboxes.patch&ticket=14937&fn=%2Fsocket_listmailboxes.patch



-- 
bugs mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]