diff options
author | Reto Brunner <reto@labrat.space> | 2021-02-26 22:08:49 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2021-03-07 14:52:42 +0100 |
commit | 413fc431f76585b09845d6b2555f7d85d5667ee3 (patch) | |
tree | f88fc728fe4435039dcf18d4c37662abeb770cd6 /commands/msg/forward.go | |
parent | f74605793ef1595cbc139bee4a6ea18cabc498b8 (diff) | |
download | aerc-413fc431f76585b09845d6b2555f7d85d5667ee3.tar.gz |
add mimeType to OriginalMail struct for both forward and reply
Diffstat (limited to 'commands/msg/forward.go')
-rw-r--r-- | commands/msg/forward.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/msg/forward.go b/commands/msg/forward.go index edade6d1..ec89bfac 100644 --- a/commands/msg/forward.go +++ b/commands/msg/forward.go @@ -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) |