I'm trying to integrate Lotus Notes into my program. I already finished sending new mail and I try to check new input messages from mail incoming into lotus notes. In official IBM documentation, I found a function that returns all unread messages, but in C# this function not available... Is there a way to do this?
notesNoteCollection = notesDatabase.GetAllUnReadDocuments( [username] )
GetAllUnreadDocumentswould not be a good way to check for new email messages. It would keep getting you the same set of documents every time, until the user reads them with the Notes client. Unfortunately, there is no simple way in the Notes COM classes to check for new messages. Typically, you would have to keep state information locally and look for changes. E.g., save the datetime last checked, and look for messages created since that datetime, and there's no particularly efficent way to do it. (That's not necessarily a huge problem, depending on your scale.) - Richard Schwartz