function()
{
if (!$this->stream)
return null;
$msg_nums = imap_search($this->stream, 'ALL');
if ($msg_nums) {
$last_msg_num = max($msg_nums);
return imap_uid($this->stream, $last_msg_num);
}
return null;
}