читал уже....
нежнее товарищи....тут не все асы как вы...
еще такой вопрос - я читаю в заголовке от кого, тема, вес, дата. А при этом трафик не реальный идет, как будто все письма загружаются..
============
$info=imap_mailboxmsginfo($mbox);
$sort=imap_sort($mbox,SORTARRIVAL,1);
for($i=1;$i<=$info->Nmsgs;$i++){
$sort2[$i]=$sort[$i-1];
settype($sort2[$i], "integer");
if($imap=='true'){$sort2[$i]=$i;}
$h=imap_headerinfo($mbox,$sort2[$i]);
$from = $h->from;
foreach ($from as $id => $object) {
$fromaddress = "‹". $object->mailbox . "@" . $object->host . "›";
}
$subj = $h->subject;
$url="read.php?n=".(int)$h->Msgno."&m=".$m;
$headerd = explode("\n", imap_fetchheader($mbox, $h->Msgno));
$subject=header_decode($subj);
$date=datem($h->udate);
$size=$h->Size;
$size=$size/1024;
$size=round($size);
$fromp =$h->fromaddress;
$fromp=header_decode($fromp);
echo "<tr><td width='20'><input type='checkbox' name='del[]' value='".(int)$h->Msgno."'></td><td width='25'>$a</td><td width='28%'>$fromp $fromaddress</td><td><a href='$url' class='mail2'>$subject</a></td><td width='100'>$date</center></td><td width='50'><center>$size K</center></td></tr>";
}