{"id":20244274,"url":"https://github.com/protonmail/gluon","last_synced_at":"2025-12-15T17:18:05.440Z","repository":{"id":37090657,"uuid":"488210664","full_name":"ProtonMail/gluon","owner":"ProtonMail","description":"An IMAP server library written in Go","archived":false,"fork":false,"pushed_at":"2025-11-05T08:03:03.000Z","size":102380,"stargazers_count":515,"open_issues_count":11,"forks_count":34,"subscribers_count":9,"default_branch":"dev","last_synced_at":"2025-11-05T10:05:45.385Z","etag":null,"topics":["go","golang","imap","imap-server","imap4","imaplib","proton","protonmail"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ProtonMail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING_NOTES.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-03T12:57:46.000Z","updated_at":"2025-11-05T08:03:06.000Z","dependencies_parsed_at":"2023-02-19T10:00:23.786Z","dependency_job_id":"831307ad-2204-4553-b53c-14a0e284fb22","html_url":"https://github.com/ProtonMail/gluon","commit_stats":{"total_commits":572,"total_committers":11,"mean_commits":52.0,"dds":"0.32692307692307687","last_synced_commit":"e1ad6b518507f32d1c0f3d00075135a0993bc670"},"previous_names":["protonmail/go-mailserver"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/ProtonMail/gluon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgluon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgluon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgluon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgluon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProtonMail","download_url":"https://codeload.github.com/ProtonMail/gluon/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgluon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27754593,"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-12-15T02:00:09.782Z","response_time":96,"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":["go","golang","imap","imap-server","imap4","imaplib","proton","protonmail"],"created_at":"2024-11-14T09:13:59.690Z","updated_at":"2025-12-15T17:18:04.444Z","avatar_url":"https://github.com/ProtonMail.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003eGluon\u003c/h1\u003e\n\u003cp align=\"center\"\u003eAn \u003ca href=\"https://datatracker.ietf.org/doc/html/rfc3501\"\u003eIMAP4rev1\u003c/a\u003e library focusing on correctness, stability and performance.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/ProtonMail/gluon/actions/workflows/release.yml\"\u003e\u003cimg src=\"https://github.com/ProtonMail/gluon/actions/workflows/release.yml/badge.svg?branch=master\" alt=\"CI Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/ProtonMail/gluon\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/ProtonMail/gluon\" alt=\"GoDoc\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/ProtonMail/gluon\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/ProtonMail/gluon\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/ProtonMail/gluon.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Demo\n\nThe demo server can be started with:\n\n```\n$ GLUON_LOG_LEVEL=trace go run demo/demo.go\nDEBU[0000] Applying update                               update=\"MailboxCreated: Mailbox.ID = 0, Mailbox.Name = INBOX\" user-id=ac8970c5-cdb7-4043-ad85-ad9b9defcfb8\nDEBU[0000] Applying update                               update=\"MessagesCreated: MessageCount=0 Messages=[]\" user-id=ac8970c5-cdb7-4043-ad85-ad9b9defcfb8\nINFO[0000] User added to server                          userID=ac8970c5-cdb7-4043-ad85-ad9b9defcfb8\nDEBU[0000] Applying update                               update=\"MailboxCreated: Mailbox.ID = 0, Mailbox.Name = INBOX\" user-id=a51fad46-9bde-462a-a467-6c30f9a40a63\nDEBU[0000] Applying update                               update=\"MessagesCreated: MessageCount=0 Messages=[]\" user-id=a51fad46-9bde-462a-a467-6c30f9a40a63\nINFO[0000] User added to server                          userID=a51fad46-9bde-462a-a467-6c30f9a40a63\nINFO[0000] Server is listening on 127.0.0.1:1143\n```\n\nBy default, the demo server includes two demo users, both with password `pass`.\nThe first has addresses `user1@example.com` and `alias1@example.com`.\nThe second has addresses `user2@example.com` and `alias2@example.com`.\n\nOnce started, connect to the demo server with an email client (e.g. thunderbird) or via telnet:\n```\n$ telnet 127.0.0.1 1143\nTrying 127.0.0.1...\nConnected to localhost.\nEscape character is '^]'.\n* OK [CAPABILITY IDLE IMAP4rev1 MOVE UIDPLUS UNSELECT]  00.00.00 - gluon session ID 2\ntag login user1@example.com pass\ntag OK [CAPABILITY IDLE IMAP4rev1 MOVE UIDPLUS UNSELECT] Logged in\ntag append inbox (\\Seen) {14}\n+ Ready\nTo: user@pm.me\ntag OK [APPENDUID 1 1] APPEND\ntag select inbox\n* FLAGS (\\Answered \\Deleted \\Flagged \\Seen)\n* 1 EXISTS\n* 1 RECENT\n* OK [PERMANENTFLAGS (\\Answered \\Deleted \\Flagged \\Seen)] Flags permitted\n* OK [UIDNEXT 2] Predicted next UID\n* OK [UIDVALIDITY 1] UIDs valid\ntag OK [READ-WRITE] SELECT\ntag fetch 1:* (UID BODY.PEEK[])\n* 1 FETCH (UID 1 BODY[] {32}\nX-Pm-Gluon-Id: 1\nTo: user@pm.me)\ntag OK command completed in 1.030958ms\n```\n\n# Changing DB schema\n\nDo not forget to re-generate ent code after changing the DB schema in `./internal/db/ent/schema`.\n\n```\npushd ./internal/db/ent \u0026\u0026 go generate . \u0026\u0026 popd\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonmail%2Fgluon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotonmail%2Fgluon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonmail%2Fgluon/lists"}