{"id":20244310,"url":"https://github.com/protonmail/go-mime","last_synced_at":"2025-07-13T18:33:47.106Z","repository":{"id":35143680,"uuid":"186649388","full_name":"ProtonMail/go-mime","owner":"ProtonMail","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-22T10:35:04.000Z","size":61,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T20:54:23.193Z","etag":null,"topics":[],"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/ProtonMail.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T15:22:55.000Z","updated_at":"2025-04-09T12:26:42.000Z","dependencies_parsed_at":"2024-06-18T18:29:00.943Z","dependency_job_id":"b5231a8f-db25-4411-b67d-b2fdd3064177","html_url":"https://github.com/ProtonMail/go-mime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProtonMail/go-mime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgo-mime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgo-mime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgo-mime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgo-mime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProtonMail","download_url":"https://codeload.github.com/ProtonMail/go-mime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProtonMail%2Fgo-mime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265186803,"owners_count":23724742,"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-11-14T09:14:23.326Z","updated_at":"2025-07-13T18:33:47.087Z","avatar_url":"https://github.com/ProtonMail.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Mime Wrapper Library\n\nProvides a parser for MIME messages\n\n## Download/Install\n\nRun `go get -u github.com/ProtonMail/go-mime`, or manually `git clone` the\nrepository into `$GOPATH/src/github.com/ProtonMail/go-mime`.\n\n\n## Usage\n\nThe library can be used to extract the body and attachments from a MIME message\n\nExample:\n```go\nprintAccepter := gomime.NewMIMEPrinter()\nbodyCollector := gomime.NewBodyCollector(printAccepter)\nattachmentsCollector := gomime.NewAttachmentsCollector(bodyCollector)\nmimeVisitor := gomime.NewMimeVisitor(attachmentsCollector)\nerr := gomime.VisitAll(bytes.NewReader(mmBodyData), h, mimeVisitor)\nattachments := attachmentsCollector.GetAttachments(),\nattachmentsHeaders :=\tattachmentsCollector.GetAttHeaders()\nbodyContent, bodyMimeType := bodyCollector.GetBody()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonmail%2Fgo-mime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotonmail%2Fgo-mime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonmail%2Fgo-mime/lists"}