ActiveSync 库

发布于 2024-09-15 23:27:10 字数 161 浏览 6 评论 0原文

我正在编写一个跨平台 C++ 应用程序,需要连接到 Exchange 服务器并使用 ActiveSync 下载邮件。

是否有任何可用于 ActiveSync 的库(最好是开源的)?

我无法使用 Windows API,因为它们无法在 Linux 和 Linux 中运行。苹果。

I am writing a cross-platform c++ application that needs to connect to Exchange servers and download mails using ActiveSync.

Is there any library available for ActiveSync (preferably open-source)?

I can't use Windows APIs as they won't run in Linux & Mac.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

转身泪倾城 2024-09-22 23:27:10

我曾经参与 SynCE 项目,致力于支持连接到桌面 Linux 计算机的 Windows Mobile 设备,因此可以提供一些建议。

您指的是 ActiveSync 还是 AirSync? AirSync 是通过无线方式使用并由 ActiveSync 实际传输数据的协议,ActiveSync 是用于同步连接到计算机的 WinMo 设备的整个堆栈。 SynCE 是我所知道的唯一与 ActiveSync 相当的开源“全栈”,从驱动程序到 AirSync 到 GUI,以及与 OpenSync 的集成,而且我不知道有任何开源项目将自己呈现为 ActiveSync 的 WinMo 设备。

我不知道 AirSync 是否有任何 C 或 C++ 实现,但我相信 Samba 和 OpenChange 团队在本地支持 Exchange 服务器方面已经取得了良好进展。大约一年半前,有人告诉我,就所需的工作而言,支持 HTTP(s) 传输也并不遥远(但我不确定它是否是一个优先事项)。

虽然不是 C++,甚至不是客户端库,但 SynCE 项目具有开源 Python 代码,如果找不到另一个库,这可能是有用的参考。

以下是由 SynCE 开发人员之一编写的推送邮件服务器示例: SynCE Airmail

主要的同步引擎可以在这里找到:SynCE SyncEngine

在该代码中,我认为 SyncEngine/airsync.py 对您最有用。

深入研究 SynCE wiki http://www.synce.org 及其邮件列表存档是查找内容的好方法了解所遇到的问题以及有关协议敏感内容和不敏感内容的令人惊讶的细节。

您可能会发现 http://libwbxml.opensync.org 很有用 - 在 wbxml 层解码后,AirSync 只是 XML通过。

最后,Microsoft 确实提供了该协议的文档:

I used to work with the SynCE project on supporting Windows Mobile devices connected to desktop Linux machines so can offer a few pointers.

Do you mean ActiveSync or AirSync? AirSync is the protocol that used over the air and by ActiveSync to actually shift the data, ActiveSync is the whole stack for syncing a WinMo device connected to your computer. SynCE is the only open source "full stack" equivalent to ActiveSync that I know of, from driver to AirSync to GUI's and integration with OpenSync, and I don't know any open source projects that present themselves as a WinMo device to ActiveSync.

I don't know of any C or C++ implementations of AirSync, but I believe that the Samba and OpenChange teams have made good progress at supporting Exchange servers natively. About a year and a half ago I was told that even supporting the HTTP(s) transport wasn't far away in terms of work needed (but i'm not sure if its been a priority).

While not in C++ and while not even a client library, the SynCE project has open source python code which might be a useful reference if another library cannot be found.

Here is an example of a push mail server that was written by one of the SynCE developers: SynCE Airmail

And the main sync engine can be found here: SynCE SyncEngine

Within that code, I think SyncEngine/airsync.py will be most useful to you.

Digging around the SynCE wiki http://www.synce.org and their mailing list archive is a good way of finding out about problems encountered and surprising details about what the protocol is and isnt sensitive about.

You may find http://libwbxml.opensync.org useful - after the wbxml layer has been decoded AirSync is just XML passing.

And finally, Microsoft do provide documentation for the protocol:

云归处 2024-09-22 23:27:10

Z-Push 可能会为您提供所需的开始。

Z-Push might provide you with the start you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文