<?php

/**
 * Returns a tree of threaded message
 *
 * @phpstub
 *
 * @param resource $imap_stream
 * @param int $options
 *
 * @return array returns an associative array containing
 *               a tree of messages threaded by , or false
 *               on error.
 */
function imap_thread($imap_stream, $options = false)
{
}