diff options
Diffstat (limited to 'commands/msg/reply.go')
-rw-r--r-- | commands/msg/reply.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 699c75fb..4b3e7c81 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -222,7 +222,14 @@ func (r reply) Execute(args []string) error { return nil } - part := lib.FindPlaintext(msg.BodyStructure, nil) + var part []int + for _, mime := range config.Viewer.Alternatives { + part = lib.FindMIMEPart(mime, msg.BodyStructure, nil) + if part != nil { + break + } + } + if part == nil { // mkey... let's get the first thing that isn't a container // if that's still nil it's either not a multipart msg (ok) or |