Szymon Olechowski - 2006-09-04 08:56:50
Hi!
I want to use the script for checking for special subjected mails. If it has special subject the program will read it and if it does not, it will mark it to be deleted. I have a problem, because if i want to list first lines (f.e. 10) of a mail i only get the first mail (yes, there are two mails).
Here is the php code:
(...)
for ($i=1; $i<=$msg_list['count_mails']; $i++)
{
$k=$i;
$message_top=$pop3->get_top($k,$lines=10);
print 'Message no. '.$k.'<br><br>';
$m=0;
while (isset($message_top[$m]))
{
// printing here just for checking
print htmlentities($message_top[$j]);
$m++;
}
}
(...)
i only get print to Message no. 2 and then nothing :(