Are there any IMAP server libraries?

There are a few SMTP client/server libraries:

And an archived IMAP client library

IMO IMAP servers are pretty hard to implement comparing with SMTP since there are more commands and states to keep track of as defined in the RFC

I’m curious whether there’s any read-to-use IMAP server library or I guess I have to write my own stripped down version of it to suit my need :frowning:

As far as I know, the answer is “no”.

There was an experimental IMAP server a long time ago with an Irmin backend, but as far as I know, it was never more than an experiment. It was part of the Mirage constellation of projects.

A quick internet search yields GitHub - gregtatcam/imaplet-lwt: imaplet revamp with Lwt, and indeed it looks pretty much abandoned :slight_smile:

Cheers,
Nicolas

1 Like