add mimeType to OriginalMail struct for both forward and reply

This commit is contained in:
Reto Brunner 2021-02-26 22:08:49 +01:00
parent f74605793e
commit 413fc431f7
3 changed files with 23 additions and 12 deletions
commands/msg

View file

@ -147,6 +147,10 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error {
part = lib.FindFirstNonMultipart(msg.BodyStructure, nil)
// if it's still nil here, we don't have a multipart msg, that's fine
}
err = addMimeType(msg, part, &original)
if err != nil {
return err
}
store.FetchBodyPart(msg.Uid, part, func(reader io.Reader) {
buf := new(bytes.Buffer)
buf.ReadFrom(reader)