Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: MailBee IMAP4 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 25 February 2005 at 2:07pm | IP Logged Quote Guests

I was curious if this compenent allowed you to get the unread email count, and if not what would I need to do to get that information. TIA

Phil
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 25 February 2005 at 2:36pm | IP Logged Quote Alex

You can determine the total number and UIDs/message numbers of unread messages using IMAP4.Search method:

' Assume we already selected a mailbox
arrUIDs = IMAP4.Search(True, "UNSEEN")
If Not IMAP4.IsError Then
' Display the number of unread messages
MsgBox "Unread count = " & UBound(arrUIDs)
End If

BTW, Search method is very powerful. It allows you can use quite complex queries like the below:
FLAGGED SINCE 1-Feb-1994 NOT FROM "Smith"

You can find more information on the query syntax and allowed keywords in IMAP4 Protocol RFC3501, SEARCH command.

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