{"id":16215024,"url":"https://github.com/xarg/imap","last_synced_at":"2025-03-19T09:31:31.354Z","repository":{"id":22825563,"uuid":"26172577","full_name":"xarg/imap","owner":"xarg","description":"IMAP client and server implementation in Go","archived":false,"fork":false,"pushed_at":"2014-12-09T16:39:46.000Z","size":317,"stargazers_count":30,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T02:12:58.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xarg.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-11-04T14:34:23.000Z","updated_at":"2022-05-20T23:11:15.000Z","dependencies_parsed_at":"2022-08-17T17:55:18.586Z","dependency_job_id":null,"html_url":"https://github.com/xarg/imap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarg%2Fimap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarg%2Fimap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarg%2Fimap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarg%2Fimap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xarg","download_url":"https://codeload.github.com/xarg/imap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244398838,"owners_count":20446461,"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","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":[],"created_at":"2024-10-10T11:13:42.144Z","updated_at":"2025-03-19T09:31:31.042Z","avatar_url":"https://github.com/xarg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"package imap\n============\n\n[![Build Status](https://travis-ci.org/xarg/imap.svg?branch=master)](https://travis-ci.org/xarg/imap)\n\nIMAP client and server implementation in Go.\n\nThis project is the result of an unification effort of 2 projects:\n\n* https://github.com/mxk/go-imap - IMAP client written in Go\n* https://github.com/alienscience/imapsrv - IMAP server written in Go\n\n\nThe motivation behind this merge is code reuse, easier testing and easier contribution.\n\nInstallation\n------------\n\n```\ngo get github.com/xarg/imap\n```\n\n\nClient\n------\n\n\nServer\n------\n\nOn it's own, the server, is not functional because it requires a mail storage, an authentication backend, etc..\nIt provides generic interfaces around mail storage and authentication. It must be used in conjunction with drivers.\n\nSee storage drivers.\n\n\nHowever, it offers a few dummy interfaces as an inspiration or used for testing.\n\n\nThe simplest way to start a server:\n\n\n```\npackage main\n\nimport (\n    imap \"github.com/xarg/imap\"\n)\n\nfunc main() {\n    // The simplest possible server - zero config\n    // It will find a free tcp port, create some temporary directories.. - just give me a server!\n    s := imap.NewServer()\n    s.Start()\n}\n```\n\nYou can try it out:\n\n```\ngo run $GOPATH/src/github.com/xarg/imap/demo/server/demo.go\n```\n\n\nA more advanced example:\n\n```\npackage main\n\nimport \"github.com/xarg/imap\"\n\nfunc main() {\n    // More advanced config\n    m := \u0026imap.DummyMailstore{}\n\n    s := imap.NewServer(\n        imap.Listen(\"127.0.0.1:1193\"),\n        imap.Store(m),\n    )\n    s.Start()\n}\n\n```\n\n\nDocs\n----\n\nhttp://godoc.org/github.com/xarg/imap\n\nLicense\n-------\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarg%2Fimap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxarg%2Fimap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarg%2Fimap/lists"}