Skip to content

Commit

Permalink
Enforce BodyStructure.Encoding being always set
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrcnull committed Sep 11, 2023
1 parent 123fd0e commit df069d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ messageLoop:
if err := json.Unmarshal(data.bodyStructureBlob, &data.bodyStructure); err != nil {
return err
}
if data.bodyStructure.Encoding == "" {
data.bodyStructure.Encoding = "7bit" // default per RFC 2045
}
}

seqNum, ok := m.handle.UidAsSeq(data.msgId)
Expand Down

0 comments on commit df069d1

Please sign in to comment.