CAPI Unread Flags update (NSFDbUpdateUnread)

Hi,

I am trying out simple program which polls a db for unread flags in CAPI

NSFDbGetUnreadNoteTable(…, &hTable);

while(1) {

NSFDbUpdateUnread(..., hTable)

// print the unread table size

}

I have set the

  1. nsf properties to maintain unread marks

  2. REPLICATOR_SYNC_UNREAD = -1.

I can see that add or deletes will cause the resulting unread table to changes it size.

But if I only modified the mail in Notes Client from unread->read, the unread table size remains the same (or vice verser).

Is this expected?

I also try to re-open the unread table (via NSFDbGetUnreadNoteTable, instead of calling update) and I can get the accurate unread table count.

Is this a known behavior?

Arnold