Libraries imports

This commit is contained in:
Jakub Lehotsky 2018-09-20 13:36:56 +02:00
parent f172cef2e1
commit d1c55119c0
4 changed files with 12 additions and 12 deletions

View file

@ -62,6 +62,7 @@ func (sc *SignatureCollector) Accept(part io.Reader, header textproto.MIMEHeader
if err != nil {
return
}
// TODO: Sunny proposed to move this also to pm-mime library
partData, _ := ioutil.ReadAll(multiparts[1])
decodedPart := pmmime.DecodeContentEncoding(bytes.NewReader(partData), multipartHeaders[1].Get("Content-Transfer-Encoding"))
buffer, err := ioutil.ReadAll(decodedPart)