emersion / emersion/go-message

multipart: NextPart: EOF error for multipart/mixed content type

Open
#174 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
458
Forks
129
PR merge metrics
No merged PRs in 30d

Description

I was trying the read the mail using go-imap and go-message libraries, but for a particular mail I am getting
`multipart: NextPart: EOF` error on `part, err := reader.NextPart()` where reader is the `mail.CreateReader`.

content type of the email is as following. I got it from gmail client `show original mail`

```
Content-Type: multipart/mixed; boundary="-----SECBOUND"

-------SECBOUND
Content-Type: text/html
Content-Transfer-Encoding: 8bit

html content only

-------SECBOUND--
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.