How do I get/set Domino read status of messages via Domino COM Object?

坚强是说给别人听的谎言 提交于 2020-02-02 18:09:47

问题


I have an application that interacts with Domino via the Domino COM object. I can send, find, delete messages without problem but getting/setting the unread status does not work. The Domino COM object has method to get the read status but it always come back as read. Anyone have a workaround that works? I've had no success with anything I've found searching online.


回答1:


Unread marks in Domino are a funny old beast. They're derived from multiple sources: whilst you have an internal table of Notes IDs within a specific NSF, you also have an "unread journal" stored in the local Notes client's CACHE.DSK file.

All recent versions of Notes (i.e. in the last 8 / 9 years) move this unread table within the Notes client (to DESKTOP.DSK I think), and also make them server-aware, so that APIs can get a handle on unread marks.

Unfortunately, this means that you're probably out of luck with things like COM but as you've found, the C++ API should be OK. IBM: The Architecture of Unread Marks in Lotus Notes




回答2:


Actually with some more research it looks like getting/setting the unread status through the COM API doesn't work. However using the C++ API would work - and I should be able to integrate this with my existing C# project as a managed C++ project.



来源:https://stackoverflow.com/questions/1870958/how-do-i-get-set-domino-read-status-of-messages-via-domino-com-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!