protected function _parseACL(Horde_Imap_Client_Interaction_Pipeline $pipeline, Horde_Imap_Client_Tokenize $data) { $acl = array(); // Ignore mailbox argument -> index 1 $data->next(); while (($curr = $data->next()) !== false) { $acl[$curr] = $curr[0] === '-' ? new Horde_Imap_Client_Data_AclNegative($data->next()) : new Horde_Imap_Client_Data_Acl($data->next()); } $pipeline->data['getacl'] = $acl; }