簡體   English   中英

如何在C#中使用LDAP從Domino服務器列出郵箱

[英]How to list mailbox from Domino Server using LDAP in C#

誰能建議我一些鏈接,我可以從中獲得一些想法,即如何使用C#使用LDAP列出郵箱

我正在使用“ Interop.Domino.dll”

這類似於問題# 1238498 這不是真正使用LDAP,而是使用Interop.Domino.dll庫,您可以打開與Notes服務器的連接並輕松列出服務器上或特定文件夾中的所有Notes“數據庫”。 Notes郵箱只是Notes數據庫,碰巧是基於通用郵件模板設計的。 因此,您可以使用相同的基本代碼遍歷所有數據庫,然后添加一些其他代碼以僅基於郵件模板過濾掉那些數據庫。

NotesSession s = new Domino.NotesSessionClass();
s.Initialize("MyPassword");
NotesDbDirectory d = s.GetDbDirectory ("MyServer");
NotesDatabase db = d.GetFirstDatabase();
...

// loop over all DB's
String sPath = db.filePath;
String sTemplateName = db.TemplateName;
// here, you can check if the template name contains "mail", for example
...
db = d.getNextDatabase (db);
...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM