From cff4476f3bb61510acefd567deb39f58351de215 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 17 May 2020 12:08:17 +0200 Subject: msg/reply: fix encoding issues for quoted reply. --- commands/msg/recall.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/msg/recall.go') diff --git a/commands/msg/recall.go b/commands/msg/recall.go index ef7e859e..7c9ac193 100644 --- a/commands/msg/recall.go +++ b/commands/msg/recall.go @@ -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} } -- cgit