msg/reply: fix encoding issues for quoted reply.

This commit is contained in:
Reto Brunner 2020-05-17 12:08:17 +02:00
commit cff4476f3b
2 changed files with 33 additions and 12 deletions
commands/msg

View file

@ -107,9 +107,10 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
part *models.BodyStructure
)
if len(msgInfo.BodyStructure.Parts) != 0 {
part, path = findPlaintext(msgInfo.BodyStructure, path)
path = findPlaintext(msgInfo.BodyStructure, path)
}
if part == nil {
part, err = msgInfo.BodyStructure.PartAtIndex(path)
if part == nil || err != nil {
part = msgInfo.BodyStructure
path = []int{1}
}