Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

IMAP Problem

the mail() function

Moderators: macek, egami, gesf

IMAP Problem

Postby adly3000 » Tue Feb 07, 2006 2:54 am

i'd like to know which message i had not been seen, so i searched the manual and fid 2 flags says Unseen == 'U' || Recent == 'N' mean.
but i don,t understand what does Unseen == 'U' || Recent == 'N' mean(what he mean by flags)?
i want to check if the message is not seen, so how to do that?
i tried
Code: Select all
$inbox = @imap_open("{mail.mysite.com:110/pop3}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS']) or header("Location: error.php?ec=3");
$headers = imap_header($inbox, $x);
if($headers->Unseen == 'U' || $headers->Recent == 'N')
but always show the message as unseen!!!!
adly3000
New php-forum User
New php-forum User
 
Posts: 55
Joined: Thu Apr 08, 2004 4:39 pm
Location: Egypt

Postby gesf » Tue Feb 07, 2006 12:44 pm

Please check imap-headerinfo manual page.
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby adly3000 » Tue Feb 07, 2006 6:56 pm

i did gsef but i did not understand.they did not say how to use Unseen == 'U' || Recent == 'N' mean.

1- let me ask should i set the seen flag on the viewmail page?!!!!!
2- the function imap_setflag_full:
bool imap_setflag_full ( resource stream, string sequence, string flag, string options)
i saw sometimes he wrote the sequence as "2,4:6" and sometimes as "2,5"?!!!!
so how to write the sequence?!
adly3000
New php-forum User
New php-forum User
 
Posts: 55
Joined: Thu Apr 08, 2004 4:39 pm
Location: Egypt


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.