protected function _parseThread(Horde_Imap_Client_Interaction_Pipeline $pipeline, Horde_Imap_Client_Tokenize $data) { $out = array(); while ($data->next() !== false) { $thread = array(); $this->_parseThreadLevel($thread, $data); $out[] = $thread; } $pipeline->data['threadparse'] = $out; }