您好,我想访问分配给我的邮箱的电子邮件,但它不是我的Exchange Server中的主邮箱。
我能够获得分配给我的邮箱服务器的详细信息,但我有一个没有邮箱的用户。
我想知道如何访问它。
我阅读了与模仿或委派相关的内容。
这不起作用,因为新用户没有主邮件。
- 如何获取分配给用户的邮箱数量?
- 如何为用户获取特定的邮箱电子邮件?
我能够访问我的邮箱,但是当我尝试访问没有主邮箱的用户的邮箱时,我无法访问。
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
service.Credentials = new WebCredentials("user-name", "password", "domain");
//Autodiscover end point
service.Url = new System.Uri("https://exchange-url/EWS/Exchange.asmx");
FolderId SharedMailbox = new FolderId(WellKnownFolderName.Inbox, "maibox-name");
ItemView itemView = new ItemView(1000);
service.FindItems(SharedMailbox, itemView);
我该怎么办?
答案 0 :(得分:0)
好吧,我使用Independentsoft.Exchange找到了一个有趣的解决方案。链接here。以下是代码
import asyncio
class TaskManager:
def __init__(self):
self.start_loop()
@asyncio.coroutine
def running_loop(self) -> None:
while True:
# do something async!
yield from asyncio.sleep(1)
def start_loop(self):
loop = asyncio.get_event_loop()
loop.run_until_complete(self.running_loop())
print("Next!")
TaskManager()
希望这有帮助