Author |
|
Landon Gaus Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 18 September 2005 at 11:20pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 20 September 2005 at 11:58am | IP Logged
|
|
|
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 |
|
|
Dylan Davison Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 04 January 2006 at 1:21pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 04 January 2006 at 2:21pm | IP Logged
|
|
|
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 |
|
|
Dylan Davison Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 05 January 2006 at 11:37am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 January 2006 at 12:04pm | IP Logged
|
|
|
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 |
|
|
Dylan Davison Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 05 January 2006 at 3:52pm | IP Logged
|
|
|
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 |
|
|
Dylan Davison Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 05 January 2006 at 4:45pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 January 2006 at 5:15pm | IP Logged
|
|
|
Yes, you're right. UIDs should be used to identify downloaded/not yet downloaded messages.
Regards,
Alex
|
Back to Top |
|
|