Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 25 February 2005 at 2:07pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 25 February 2005 at 2:36pm | IP Logged
|
|
|
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 |
|
|