diff options
-rw-r--r-- | commands/msg/reply.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 34d03d53..813a66e5 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -194,10 +194,11 @@ func findPlaintext(bs *models.BodyStructure, for i, part := range bs.Parts { cur := append(path, i+1) - if part.MIMEType == "text" && part.MIMESubType == "plain" { + if strings.ToLower(part.MIMEType) == "text" && + strings.ToLower(part.MIMESubType) == "plain" { return part, cur } - if part.MIMEType == "multipart" { + if strings.ToLower(part.MIMEType) == "multipart" { if part, path := findPlaintext(part, cur); path != nil { return part, path } |