实施 IMAP 服务器
我需要围绕某些消息系统编写 IMAP 包装器。 鉴于 IMAP 协议的复杂性,我宁愿使用一些现有的库来为我完成繁重的工作。
PHP 或 Python 中是否有可用的 IMAP 服务器/库/框架?
或者,是否有这样的 IMAP 服务器允许编写驱动程序以使用自定义消息系统作为后端?
I need to write an IMAP wrapper around some messaging system.
With all the complexity of IMAP protocol i'd rather use some existing library to do the heavy lifting for me.
Are there any IMAP servers / libraries / frameworks available in PHP or Python?
Alternatively, is there such IMAP server which would allow to write a driver to use custom messaging system as a backend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不介意使用 Java,Apache James IMAP 提供符合 RFC2040 的数据访问层IMAP。它的性能尚未完全优化,但似乎已经过测试并且处于工作状态。他们还提供完整的 IMAP 服务器,因为一切都在 Apache 许可下,您应该能够按原样使用它或以任何您喜欢的方式修改它。
If you do not mind using Java then, Apache James IMAP provides RFC2040 compliant data access layer for IMAP. It is not fully optimized for performance yet but appears to be tested and in working condition otherwise. They also provide a full IMAP server and because everything is under Apache license, you should be able to use it as is or modify it any way you feel like.
用于编写协议服务器和客户端的 Python 库可能声誉最好的是 Twisted。它包含 IMAP 服务器的实现 (
twisted.mail.imap4.IMAP4Server
)。乍一看,您似乎需要将“邮箱”包装在 此界面。(请注意,虽然我从未使用过这个类,但我不确定这是否真的像我期望的那样有效。)
The Python library for writing protocol servers and clients with probably the best reputation is Twisted. It contains an implementation of an IMAP server (
twisted.mail.imap4.IMAP4Server
). From a quick glance, it seems you'd need to wrap your "mail boxes" in this interface.(Note though that I never used this class and I'm not sure if this really works as I expect it to work.)