{"id":22993904,"url":"https://github.com/erizocosmico/go-imapreader","last_synced_at":"2025-10-05T17:12:34.726Z","repository":{"id":57492545,"uuid":"48172888","full_name":"erizocosmico/go-imapreader","owner":"erizocosmico","description":"Simple interface for reading IMAP emails in Golang","archived":false,"fork":false,"pushed_at":"2019-02-04T14:08:59.000Z","size":7,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T22:39:42.230Z","etag":null,"topics":["emails","golang","imap","reader"],"latest_commit_sha":null,"homepage":null,"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/erizocosmico.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":"2015-12-17T12:22:13.000Z","updated_at":"2024-06-20T17:48:37.000Z","dependencies_parsed_at":"2022-08-28T11:51:40.704Z","dependency_job_id":null,"html_url":"https://github.com/erizocosmico/go-imapreader","commit_stats":null,"previous_names":["mvader/go-imapreader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/erizocosmico/go-imapreader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fgo-imapreader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fgo-imapreader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fgo-imapreader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fgo-imapreader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erizocosmico","download_url":"https://codeload.github.com/erizocosmico/go-imapreader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erizocosmico%2Fgo-imapreader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486308,"owners_count":25994945,"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-10-05T02:00:06.059Z","response_time":54,"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":["emails","golang","imap","reader"],"created_at":"2024-12-15T05:15:32.210Z","updated_at":"2025-10-05T17:12:34.710Z","avatar_url":"https://github.com/erizocosmico.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-imapreader [![Build Status](https://travis-ci.org/erizocosmico/go-imapreader.svg?branch=master)](https://travis-ci.org/erizocosmico/go-imapreader) [![GoDoc](https://godoc.org/github.com/erizocosmico/go-imapreader?status.svg)](http://godoc.org/github.com/erizocosmico/go-imapreader)\nSimple interface for reading IMAP emails in Golang.\n\n## Install\n\n```\ngo get github.com/erizocosmico/go-imapreader\n```\n\n## Usage\n\n```go\nimport (\n  \"github.com/erizocosmico/go-imapreader\"\n)\n\nfunc main() {\n  r, err := imapreader.NewReader(imapreader.Options{\n\t\tAddr:     os.Getenv(\"TEST_ADDR\"),\n\t\tUsername: os.Getenv(\"TEST_USER\"),\n\t\tPassword: os.Getenv(\"TEST_PWD\"),\n\t\tTLS:      true,\n\t\tTimeout:  60 * time.Second,\n\t\tMarkSeen: true,\n\t})\n\tif err != nil {\n\t  panic(err)\n\t}\n\t\n\tif err := r.Login(); err != nil {\n\t  panic(err)\n\t}\n\tdefer r.Logout()\n\t\n\t// Search for all the emails in \"all mail\" that are unseen\n\t// read the docs for more search filters\n\tmessages, err := r.List(imapreader.GMailAllMail, imapreader.SearchUnseen)\n\tif err != nil {\n\t  panic(err)\n\t}\n\t\n\t// do stuff with messages\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizocosmico%2Fgo-imapreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferizocosmico%2Fgo-imapreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizocosmico%2Fgo-imapreader/lists"}