{"id":21954862,"url":"https://github.com/thefox/imapd","last_synced_at":"2025-09-21T21:48:52.140Z","repository":{"id":17072476,"uuid":"19837380","full_name":"TheFox/imapd","owner":"TheFox","description":"IMAP server (library) to serve emails to an email client, written in pure PHP.","archived":false,"fork":false,"pushed_at":"2020-03-23T19:29:10.000Z","size":517,"stargazers_count":52,"open_issues_count":3,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T12:49:50.382Z","etag":null,"topics":["imap","imap-library","imap-server","imapd","mit-license","php","php-library"],"latest_commit_sha":null,"homepage":"https://blog.fox21.at/2014/08/07/imapd.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheFox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-v0.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-15T22:31:27.000Z","updated_at":"2024-08-21T14:29:13.000Z","dependencies_parsed_at":"2022-09-22T14:41:24.526Z","dependency_job_id":null,"html_url":"https://github.com/TheFox/imapd","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/TheFox/imapd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fimapd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fimapd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fimapd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fimapd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheFox","download_url":"https://codeload.github.com/TheFox/imapd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fimapd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276312966,"owners_count":25620626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imap","imap-library","imap-server","imapd","mit-license","php","php-library"],"created_at":"2024-11-29T07:26:25.078Z","updated_at":"2025-09-21T21:48:52.117Z","avatar_url":"https://github.com/TheFox.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMAPd\n\nIMAP server (library) to serve emails to an email client, written in pure PHP.\n\nThe `d` in `SMTPd` stands for [Daemon](https://en.wikipedia.org/wiki/Daemon_(computing)). This script can run in background like any other daemon process. It's not meant for running as a webapplication.\n\n## Why this project?\n\nBelieve 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.\n\nWith this interface you can do something like this for your app users:\n\n```\n+--------------+     +-------+     +------------------------+     +------+\n| Your PHP App +---\u003e | IMAPd +---\u003e | MUA (like Thunderbird) +---\u003e | User |\n+--------------+     +-------+     +------------------------+     +------+\n```\n\nThis is useful when you have a messaging application written in PHP but no graphical user interface for it. So your graphical user interface can be any [email client](http://en.wikipedia.org/wiki/Email_client). [Thunderbird](https://www.mozilla.org/en-US/thunderbird/) for instance.\n\n## Project Outlines\n\nThe project outlines as described in my blog post about [Open Source Software Collaboration](https://blog.fox21.at/2019/02/21/open-source-software-collaboration.html).\n\n- The main purpose of this software is to provide a server-side IMAP API for PHP scripts.\n- Although the RFC implementations are not completed yet, they must be strict.\n- More features can be possible in the future. In perspective of the protocols the features must be a RFC implementation.\n- This list is open. Feel free to request features.\n\n## Planned Features\n\n- Full RFC 3501 Implementation.\n- Replace `Zend\\Mail` with a better solution.\n\n## Installation\n\nThe preferred method of installation is via [Packagist](https://packagist.org/packages/thefox/imapd) and [Composer](https://getcomposer.org/). Run the following command to install the package and add it as a requirement to composer.json:\n\n```bash\ncomposer require thefox/imapd\n```\n\n## Usage\n\nSee [`example.php`](example.php) file for more information.\n\n## RFC 3501 Implementation\n\n### Complete implementation\n\n- 6.1.2 NOOP Command\n- 6.1.3 LOGOUT Command\n- 6.4.1 CHECK Command\n- 6.4.7 COPY Command\n- 7.1.1 OK Response\n- 7.1.2 NO Response\n- 7.1.3 BAD Response\n- 7.1.5 BYE Response\n- 7.4.1 EXPUNGE Response\n\n### Incomplete implemention\n\n- 2.3.1.1 Unique Identifier (UID) Message Attribute\n- 2.3.1.2 Message Sequence Number Message Attribute\n- 2.3.2 Flags Message Attribute\n- 6.1.1 CAPABILITY Command\n- 6.2.2 AUTHENTICATE Command\n- 6.2.3 LOGIN Command\n- 6.3.1 SELECT Command\n- 6.3.6 SUBSCRIBE Command\n- 6.3.7 UNSUBSCRIBE Command\n- 6.3.8 LIST Command\n- 6.3.9 LSUB Command\n- 6.3.11 APPEND Command\n- 6.4.2 CLOSE Command\n- 6.4.4 SEARCH Command\n- 6.4.5 FETCH Command\n- 6.4.6 STORE Command\n- 6.4.8 UID Command\n- 7.1.4 PREAUTH Response\n- 7.2.1 CAPABILITY Response\n- 7.2.2 LIST Response\n- 7.2.3 LSUB Response\n- 7.2.5 SEARCH Response\n- 7.3.1 EXISTS Response\n- 7.3.2 RECENT Response\n- 7.4.2 FETCH Response\n\n## TODO\n\n- Some tasks are commented with `NOT_IMPLEMENTED`. Implement these.\n- `@TODO` are to be complete the PHP Code Sniffer tests before releasing a new version.\n\n## Alternatives for `Zend\\Mail`\n\n- [exorus/php-mime-mail-parser](https://packagist.org/packages/exorus/php-mime-mail-parser) (requires ext-mailparse PHP extension)\n\n## Related Links\n\n- [RFC 3501](https://tools.ietf.org/html/rfc3501)\n- [Email Will Last Forever](http://blog.frontapp.com/email-will-last-forever/)\n- [Email Is Still the Best Thing on the Internet](http://www.theatlantic.com/technology/archive/2014/08/why-email-will-never-die/375973/)\n- [Believe it or not, email is still the killer app](http://www.digitaltrends.com/mobile/believe-it-or-not-email-is-still-the-killer-app/#!bs4oTU)\n- [Developers: stop re-AOLizing the web!](http://technicalfault.net/2014/07/03/developers-stop-re-aolizing-the-web/)\n- [Set up your own email server in 5 steps](https://forum.bytemark.co.uk/t/set-up-your-own-email-server-in-5-steps/1864)\n\n## Related Projects\n\n- [SMTPd](https://github.com/TheFox/smtpd)\n\n## Project Links\n\n- [Blog Post about IMAPd](http://blog.fox21.at/2014/08/07/imapd.html)\n- [Packagist Package](https://packagist.org/packages/thefox/imapd)\n- [PHPWeekly - Issue August 7, 2014](http://phpweekly.com/archive/2014-08-07.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fimapd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefox%2Fimapd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fimapd/lists"}