We are trying to write a component that would connect to Exchange Server on a predetermined schedule and retrieve any new messages from a specific mailbox.
We have used the ListMessages(folder,query) function, but it returns all messages in the inbox.
Does anybody have a sample query we can use for the 2nd parameter that will only return the unread/new messages from the inbox?
Alternatively, is there a way to determine if a message has been read after retrieving it using the FetchMessage() method?