imap_thread Returns a tree of threaded message Description arrayimap_thread resourcestream_id intoptions 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"] <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); ?> ]]>