可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
Is anyone familiar with an Exchange ActiveSync library or open source client for python? I've done preliminary searching with little to no success. I've seen some examples for C#, but I figured I'd ask around here before my attempt to port anything over.
In case you're curious. This would be an extension of an already existing linux based IMAP / POP3 client. Moving to Windows / C# this late in the game isn't really an option.
回答1:
This is a Python ActiveSync client, built on Twisted: https://code.google.com/p/py-eas-client/
回答2:
On Debian 9:
apt-get install mercurial python-twisted hg clone https://bitbucket.org/drspringfield/py-eas-client cd py-eas-client python setup.py install python imap_to_eas_proxy.py --domain example.org --server mail.example.org --device_id myID.example.net
then connect via insecure IMAP to localhost:3143
and log in as normal. (For the Exchange server I was trying to connect to, this just threw Activesync error Connection lost
, but it might work on other Exchange servers and/or when py-eas-client is improved.)