Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: How to know if a message is read in api? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
abdullahseba
Newbie
Newbie
Avatar

Joined: 25 March 2017
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 25 March 2017 at 5:40pm | IP Logged Quote abdullahseba

Hi
I cant find anything in the docs to see if a message is read or not.
I want to make the subject bold if its unread or normal if read.

echo '
                 <tr>
                    <td><input type="checkbox"></td>
                    <td class="mailbox-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
                    <td class="mailbox-name"><a href="read-mail.html">'.$oFrom->ToString().'</a></td>
                    <td class="mailbox-subject"><b>'.$oMessage->GetSubject().'</b>
                    </td>
                    <td class="mailbox-attachment"><i class="fa fa-paperclip"></i></td>
                    <td class="mailbox-date">15 days ago</td>
                  </tr>
                  
                  ';
Back to Top View abdullahseba's Profile Search for other posts by abdullahseba
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6040
Posted: 27 March 2017 at 3:10am | IP Logged Quote Igor

Hello,

Try using $oMessage->GetFlags method, it returns a list of flags for a message, and if it doesn't contain "\Seen" flag then the message is unread.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide