correctly handle attachments mimetype and set proper msgtype, fixes #27

This commit is contained in:
Aine
2022-09-13 17:21:00 +03:00
parent 7e92c023c8
commit 76bffd931c
5 changed files with 37 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ func (s *msasession) parseAttachments(parts []*enmime.Part) []*utils.File {
for _, err := range attachment.Errors {
s.log.Warn("attachment error: %v", err)
}
file := utils.NewFile(attachment.FileName, attachment.ContentType, attachment.Content)
file := utils.NewFile(attachment.FileName, attachment.Content)
files = append(files, file)
}