This project is read-only.

Is it possible to get messages in inbox with the 'deleted' flag not marked?

Nov 16, 2011 at 11:30 AM

I am writing a client which checks for messages on the server, downloads them to a local database and then marks them as deleted on the server.

The only problem I am facing is that when I get the message count and iterate over each message, it is including those message marked for deletion.

When I delete the messages from the server, I am calling DeleteMessage with the expunge parameter set to false to avoid permanent deletion of the emails on the server.

If there any way that I can get:

1) a count of emails inside the inbox that do not have the 'deleted' flag set.

2) iterate over those emails

Thanks.