imap_header prob

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to read only new mail from a mailbox and display it in a table.
What I'm doing is this (server data obfuscated):

$mail=imap_open('', 'ACC', 'PW');
// Get number of mail
// Get content of mails retrieved, formated and presented

for($i = 1; $i <= $current; $i++){
        if($recent == "N" || $unseen == "U"){
  process mail in various ways

As I understand it ( on imap_headers) the if($recent == etc) method
is the way to get only new mail and ignore the rest. But I still get all
mail every time I open the mailbox.

Am I doing something wrong or is our slightly non-standard mail server


Martin S

Site Timeline