Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Examine query

$
0
0
Hi JanEric,

In the current version of the library, the Folder.Unseen property gives you the message sequence number of the first unseen message in the mailbox, and not the amount of unseen messages.

I now implemented the STATUS command, and made a few changes:
  • Folder.FirstUnseen gives you the message sequence number of the first unseen message
  • Folder.Unseen gives you the number of unseen messages in the folder. (Needs a call to Folder.Status method first)
You can call the Folder.Status method this way:
folder.Status(new[] { FolderStatusFields.Unseen });
Greets,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles