Hello Community,
I’m currently working with the HCL C API (version: CAPIToolkit_1202_MP1) to extract unread emails from a user’s NSF mail database. I’m attempting to use the NSFDbGetUnreadNoteTable function, but it seems to return all documents — including read ones — instead of only unread notes.
Here’s a simplified version of the code I’m using:
c api
UNREADTABLE *pUnreadTable = NULL;
// Get unread note ID table
STATUS status = NSFDbGetUnreadNoteTable(
hDb, userName,
strlen(userName),
FALSE, // create if not there
&hTable);
The function executes without error and returns a valid UNREADTABLE pointer. However, when I iterate through the entries, it appears to include all note IDs, not just the unread ones from, say, the Inbox view.
My goal:
To retrieve only unread emails from a specific view such as ($Inbox) or the whole database.

