imap_thread Returns a tree of threaded message &reftitle.description; arrayimap_thread resourceimap_stream intoptionsSE_FREE Gets a tree of a threaded message. &reftitle.parameters; &imap.imap-stream.description; options &reftitle.returnvalues; imap_thread returns an associative array containing a tree of messages threaded by REFERENCES, or &false; on error. Every message in the current mailbox will be represented by three entries in the resulting array: $thread["XX.num"] - current message number $thread["XX.next"] $thread["XX.branch"] &reftitle.examples; <function>imap_thread</function> Example $val) { $tree = explode('.', $key); if ($tree[1] == 'num') { $header = imap_headerinfo($nntp, $val); echo "
    \n\t
  • " . $header->fromaddress . "\n"; } elseif ($tree[1] == 'branch') { echo "\t
  • \n
\n"; } } imap_close($nntp); ?> ]]>