{"id":19608603,"url":"https://github.com/teamwork/tnef","last_synced_at":"2025-04-27T20:32:58.760Z","repository":{"id":57486730,"uuid":"49966397","full_name":"Teamwork/tnef","owner":"Teamwork","description":"Go library to extract body and attachments from TNEF files","archived":false,"fork":false,"pushed_at":"2023-05-17T16:28:13.000Z","size":878,"stargazers_count":16,"open_issues_count":1,"forks_count":11,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-04-05T03:22:15.726Z","etag":null,"topics":["go","tnef"],"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/Teamwork.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":"2016-01-19T16:32:00.000Z","updated_at":"2024-03-06T02:11:22.000Z","dependencies_parsed_at":"2024-06-18T22:48:09.217Z","dependency_job_id":"67df589f-f507-49da-a4c2-c373aef689ef","html_url":"https://github.com/Teamwork/tnef","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/Teamwork%2Ftnef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Ftnef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Ftnef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Ftnef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Teamwork","download_url":"https://codeload.github.com/Teamwork/tnef/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251204695,"owners_count":21552268,"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":["go","tnef"],"created_at":"2024-11-11T10:15:54.421Z","updated_at":"2025-04-27T20:32:58.358Z","avatar_url":"https://github.com/Teamwork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/Teamwork/tnef.svg?branch=master)](https://travis-ci.com/Teamwork/tnef)\n[![codecov](https://codecov.io/gh/Teamwork/tnef/branch/master/graph/badge.svg)](https://codecov.io/gh/Teamwork/tnef)\n[![GoDoc](https://godoc.org/github.com/Teamwork/tnef?status.svg)](https://godoc.org/github.com/Teamwork/tnef)\n\nWith this library you can extract the body and attachments from Transport\nNeutral Encapsulation Format (TNEF) files.\n\nThis work is based on https://github.com/koodaamo/tnefparse and\nhttp://www.freeutils.net/source/jtnef/.\n\n## Example usage\n\n```go\npackage main\nimport (\n\n\t\"io/ioutil\"\n\t\"os\"\n\t\"github.com/teamwork/tnef\"\n)\n\nfunc main() {\n\tt, err := tnef.DecodeFile(\"./winmail.dat\")\n\tif err != nil {\n\t\treturn\n\t}\n\twd, _ := os.Getwd()\n\tfor _, a := range t.Attachments {\n\t\tioutil.WriteFile(wd+\"/\"+a.Title, a.Data, 0777)\n\t}\n\tioutil.WriteFile(wd+\"/bodyHTML.html\", t.BodyHTML, 0777)\n\tioutil.WriteFile(wd+\"/bodyPlain.html\", t.Body, 0777)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwork%2Ftnef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamwork%2Ftnef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwork%2Ftnef/lists"}