Skip to content

Commit

Permalink
fix rfc822XXX issue (#332)
Browse files Browse the repository at this point in the history
* fix rfc822XXX issue

* update

* fix go code indented with tabs
  • Loading branch information
xiaobin-qmcx authored and emersion committed Feb 29, 2020
1 parent aa63a29 commit 6b825b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ func (section *BodySectionName) resp() *BodySectionName {
if len(resp.Partial) == 2 {
resp.Partial = []int{resp.Partial[0]}
}
resp.value = ""
if !strings.HasPrefix(string(resp.value), string(FetchRFC822)) {
resp.value = ""
}
return &resp
}

Expand Down

0 comments on commit 6b825b4

Please sign in to comment.