summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/msg/reply.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 34d03d5..813a66e 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
}