aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/recall.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-17 12:08:17 +0200
committerReto Brunner <reto@labrat.space>2020-05-17 12:08:17 +0200
commitcff4476f3bb61510acefd567deb39f58351de215 (patch)
treeb319b346445ca18dae980db19e290ac54b25c03f /commands/msg/recall.go
parent13a6a3fa7109ce6dcff79ea9ed2a012226386fad (diff)
downloadaerc-cff4476f3bb61510acefd567deb39f58351de215.tar.gz
msg/reply: fix encoding issues for quoted reply.
Diffstat (limited to 'commands/msg/recall.go')
-rw-r--r--commands/msg/recall.go5
1 files changed, 3 insertions, 2 deletions
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}
}