Alexei Tenitski
Alexei Tenitski

Reputation: 9360

Implementing IMAP server

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?

Upvotes: 1

Views: 1977

Answers (2)

Sven Marnach
Sven Marnach

Reputation: 601519

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.)

Upvotes: 0

RHT
RHT

Reputation: 5054

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.

Upvotes: 1

Related Questions