Jul 26, 2008

Imap Problem - i want to check if the message is not seen

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Imap Problem - i want to check if the message is not seen

adly3000
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

$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!!!!

Reply

cooleappie
Maybe you could explain your problem more clearly.. I really can't do anything with this..

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : imap message

  1. Just About Completed My Own Message Board Source. - This one looks nice! (10)
    I've finally completed my message board source code! This one is very nice, and it has
    many, many features. So if you can, please rate them and possibly register if you like this
    /wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> http://subzer0.net/boards/ ...
  2. Reading Emails Using Php (imap) - (0)
  3. Php And Imap To Read Emails - Need Help - (0)
    Hi everyone, im experimenting with php and IMAP to read emails on my local email server. My local
    email server is Mercury V4 which aparently does support POP and IMAP, i have confirmed the server is
    working by sending an email from the server using its internal send mail system and then checking
    that email using the Thunderbird client. the email was sent and received properly. So i moved into
    the PHP area and done the basic connect code (the full code i used is below so check that, im sure
    its right, i basically copied it) which seemed to work, i got the result: "Resou...
  4. Imap Status Set Flags Problem - IMAP status set flags problem (1)
    i'd like to set or clear the seen flag to any selected message: CODE if
    (isset($_GET['hmark']) &&
    isset($_GET['dmsg']) &&
    isset($_GET['fresh'])) {     $dmsg =
    $_GET['dmsg'];     $flagtype = $_GET['hmark'];
        $fresh = $_GET['fresh'];     $used =
    isset($_SESSION['used']) ? $_SESSION['used'] :
    array();     if (&#...
  5. My Self-coded Message Boards - Rate them! (25)
    Alright, I used my great knowledge of PHP ( /tongue.gif' border='0' style='vertical-align:middle'
    alt='tongue.gif' /> ) to code my own message boards! http://subzer0.net/php . The script
    runs exceptionally fast and posting/leveling up works and most of the admin/mod features work. If
    you want to register, then you would be able to explore these features more. If you don't, then
    could you just rate them by the look of the index? >_> Please rate them from 1 to 10!...
  6. Random Message Generator - (4)
    Here comes another one of Inspired's "amazing" PHP scripts. This little script lets you display
    a random message every time the user visits that particular page. It's not really that useful,
    but it does make the page a bit more "dynamic". CODE $randMsg = array("Hi,
    welcome to my page!", "Hey you! Thanks for visiting!", "Bonjour, mon
    ami!", "So, do you like the site?", "Come one, come all!");
    $MsgNum = count($randMsg); $MsgGenNum = floor(rand(MsgNum)&...



Looking for imap, problem, check, message

Searching Video's for imap, problem, check, message
advertisement



Imap Problem - i want to check if the message is not seen



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE