6.0.0-beta1
7/6/25

[#14937] listMailboxes missing status information
Summary listMailboxes missing status information
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester mariusz.goch (at) spacja (dot) com
Created 07/12/2019 (2186 days ago)
Due
Updated 09/14/2019 (2122 days ago)
Assigned
Resolved 09/14/2019 (2122 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
09/14/2019 04:41:32 PM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit c48652f7b2b3c064ed13d0ec18572897e27cd8f6
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat, 14 Sep 2019 12:07:54 -0400

[mjr] Fix LIST-STATUS parsing when using wildcards (Bug #14937
mariusz.goch@spacja.com).

  M doc/Horde/Imap/Client/changelog.yml

https://github.com/horde/Imap_Client/commit/c48652f7b2b3c064ed13d0ec18572897e27cd8f6
09/14/2019 04:41:31 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 7745cbc8c05cdb949a4bff9c76bcaa7203ad925a
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat, 14 Sep 2019 12:07:41 -0400

Bug: 14937 Fix LIST-STATUS parsing when using wildcards 
(mariusz.goch@spacja.com).

  M lib/Horde/Imap/Client/Socket.php

https://github.com/horde/Imap_Client/commit/7745cbc8c05cdb949a4bff9c76bcaa7203ad925a
09/14/2019 04:40:45 PM Michael Rubinsky Comment #5
Assigned to Michael Rubinsky
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
Committed, thanks!
09/14/2019 04:02:42 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 0b76665da2aab9f80c69353a31a9066330676c73
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat, 14 Sep 2019 12:02:17 -0400

[mjr] Fix LIST-STATUS parsing when using wildcards (Bug #14937
mariusz.goch@spacja.com).

  M doc/Horde/Imap/Client/CHANGES
  M package.xml

https://github.com/horde/Imap_Client/commit/0b76665da2aab9f80c69353a31a9066330676c73
09/14/2019 04:02:41 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit beadd0ff479f0f0fa7fc5b8bc524305ab31fab2c
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat, 14 Sep 2019 12:02:17 -0400

[mjr] Fix LIST-STATUS parsing when using wildcards (Bug #14937
mariusz.goch@spacja.com).

  M doc/Horde/Imap/Client/changelog.yml

https://github.com/horde/Imap_Client/commit/beadd0ff479f0f0fa7fc5b8bc524305ab31fab2c
09/14/2019 04:00:54 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 045a47b784ce0ad7dcc399797faf1a903839b2e9
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat, 14 Sep 2019 12:00:45 -0400

Bug: 14937 Fix LIST-STATUS parsing when using wildcards 
(mariusz.goch@spacja.com).

  M lib/Horde/Imap/Client/Socket.php

https://github.com/horde/Imap_Client/commit/045a47b784ce0ad7dcc399797faf1a903839b2e9
07/12/2019 08:11:45 PM mariusz (dot) goch (at) spacja (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ listMailboxes missing status information
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: socket_listmailboxes.patch Download
State ⇒ Unconfirmed
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