Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: read/unread messages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Landon Gaus
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 18 September 2005 at 11:20pm | IP Logged Quote Landon Gaus

If I use the Pro version with an IMAP server, will it determine the read/unread status of a message? If not, once the user logs in to the webmail, will the server update the webmail database if the user deleted a message or changed the message read/unread status in Outlook?
Back to Top View Landon Gaus's Profile Search for other posts by Landon Gaus
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 September 2005 at 11:58am | IP Logged Quote Alex

New MailBee WebMail Pro 3.2 beta version already supports these features.

The production version will be released in a week or so.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Dylan Davison
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 04 January 2006 at 1:21pm | IP Logged Quote Dylan Davison

I would like to have the number of new (unread) messages displayed on the home page of my site. I already have the first 5 messages on the mail server listed, and a link set up to redirect the user to their inbox when they click the subject line. I just need a way to compare the message ids in the webmail DB against those on the server. Should I just write my own ASP for this? or is there a built in method? I am using webmail 3.2
Back to Top View Dylan Davison's Profile Search for other posts by Dylan Davison
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 04 January 2006 at 2:21pm | IP Logged Quote Alex

There is no bult-in function for this but you can get the number of unread messages from the query like below:
"SELECT COUNT(*) FROM wm_messages WHERE bln_read=0 AND id_user=" & id_user & " AND id_folder=" & id_folder

To get id_user and id_folder values, you can use the code in list.asp (these values must be present in request parameters).

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Dylan Davison
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 05 January 2006 at 11:37am | IP Logged Quote Dylan Davison

I assume that select statement would only check messages already received to the webmail DB. So I would need to check for new mail on the server prior to running this query... correct?
Back to Top View Dylan Davison's Profile Search for other posts by Dylan Davison
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 05 January 2006 at 12:04pm | IP Logged Quote Alex

Yes, if you also wish to download mail which was not yet downloaded from the mail server, you can use get_mail.asp script as scratch to write your own script.

Then, you can run SQL script which returns the number of unread messages.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Dylan Davison
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 05 January 2006 at 3:52pm | IP Logged Quote Dylan Davison

Alex,

I checked the get_mail.asp script, and tried to find where the code determines if the message on the server needs to be downloaded or not. I assume this utilizes the message id, but the message ID's in the database don't seem to corelate with the ones returned by messageid method.

If I can determine how a message is identified for download by the script, then I should be able to count it as either read or unread without having to actually dowload any full messages do the webmail DB. I would like to avoid this as it could cause a delay in displaying the page if many messages are present for download.
Thanks again for your help!
Back to Top View Dylan Davison's Profile Search for other posts by Dylan Davison
 
Dylan Davison
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 05 January 2006 at 4:45pm | IP Logged Quote Dylan Davison

Alex,

I figured this out. I should have been using the message UID rather than the message ID from the headder. Using the UID I should be able to identify read vs unread.

Thanks!
Back to Top View Dylan Davison's Profile Search for other posts by Dylan Davison
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 05 January 2006 at 5:15pm | IP Logged Quote Alex

Yes, you're right. UIDs should be used to identify downloaded/not yet downloaded messages.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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