aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/recall.go
diff options
context:
space:
mode:
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 4ef505ef..52d4ee89 100644
--- a/commands/msg/recall.go
+++ b/commands/msg/recall.go
@@ -204,12 +204,13 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
}
msg.FetchBodyPart(p, func(reader io.Reader) {
mime := fmt.Sprintf("%s/%s", bs.MIMEType, bs.MIMESubType)
- name, ok := bs.Params["name"]
+ params := lib.SetUtf8Charset(bs.Params)
+ name, ok := params["name"]
if !ok {
name = fmt.Sprintf("%s_%s_%d", bs.MIMEType, bs.MIMESubType, rand.Uint64())
}
mu.Lock()
- composer.AddPartAttachment(name, mime, bs.Params, reader)
+ composer.AddPartAttachment(name, mime, params, reader)
mu.Unlock()
})
}