Why this project?
Believe it or not, email is still the killer feature of the Internet. There are tons of projects for accessing and fetching emails from an IMAP/POP3 server. But there are not so many providing a programmatically interface to serve emails to an email client.
With this interface you can do something like this for your app users:
User <-> MUA (like Thunderbird) <-> IMAP <-> Your PHP App
$ composer.phar require "thefox/imapd=~0.1"
Clone project from GitHub.
$ git clone https://github.com/TheFox/imapd.git
To start a stand-alone server you can type the following command in your shell:
$ ./application.php server -d
To show the usage options use
$ ./application.php server -h
You can change the IP and port. Default port is 20143.
$ ./application.php server -a 0.0.0.0 -p 143