letters
letters copied to clipboard
Letters, or how to parse emails in Go
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5. Release notes Sourced from golangci/golangci-lint-action's releases. v5.0.0 What's Changed Changes feat: add support for pull_request_target and only-new-issues by @kovetskiy in golangci/golangci-lint-action#506 feat: add option...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.24.0. Commits 7bbe320 go.mod: update golang.org/x dependencies c48da13 http2: fix TestServerContinuationFlood flakes 762b58d http2: fix tipos in comment ba87210 http2: close connections when receiving too...
Hi @mnako Based on a need to parse the headers of a lot of emails, I've suggested a small patch to optionally do this following the suggestion in Discussions [here](https://github.com/mnako/letters/discussions/64)....
### Part of eml-file `X-MS-Exchange-Organization-Processed-By-Gcc-Journaling: Journal Agent Content-Type: multipart/mixed; boundary="_a5093c80-52fc-4ad9-bca7-3906fe47922d_" --_a5093c80-52fc-4ad9-bca7-3906fe47922d_ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable` ### code `email, err := letters.ParseEmail(r) if err != nil { log.Fatal(err) } `...
**Email header:** `To: =?utf-8?Q?a=40a?= ` **code:** ``` email, err := letters.ParseEmail(r) if err != nil { log.Fatal(err) } ``` Panic when header contains `a=40a` **output** `letters.ParseEmail: cannot parse headers: letters.parsers.parseHeaders:...
Code snippet: ```go ml "github.com/mnako/letters" // ... mm, err := ml.ParseEmail(strings.NewReader(raw1)) if err != nil { return &em, nil } var Text = mm.Text var HTML = mm.HTML ``` #...
Hi @mnako , good job, i have a question for a big problem that affects lot of mail parser projects, did you try to parse big attachments in a project...
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.14.0 to 0.15.0. Commits 8d533a0 encoding/charmap: update UCM spec file URL prefix See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 6. Release notes Sourced from golangci/golangci-lint-action's releases. v6.0.0 What's Changed This version removes annotations option (because it was useless), and removes the default output format...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.25.0. Commits d27919b go.mod: update golang.org/x dependencies e0324fc http2: use net.ErrClosed b20cd59 quic: initiate key rotation earlier in connections f95a3b3 html: fix typo in package...