From 0e554a879d1b8de61e6eb7d2e7ef64e9ec99ce1b Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Tue, 12 Jan 2021 20:21:06 +0100 Subject: trim <> from messageIDs when handling mailto links Co-authored-by: James Walmsley --- widgets/aerc.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/widgets/aerc.go b/widgets/aerc.go index 70bee7c6..01166b07 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -514,6 +514,12 @@ func (aerc *Aerc) Mailto(addr *url.URL) error { } h.SetAddressList("Cc", list) case "in-reply-to": + for i, msgID := range vals { + if len(msgID) > 1 && msgID[0] == '<' && + msgID[len(msgID)-1] == '>' { + vals[i] = msgID[1 : len(msgID)-1] + } + } h.SetMsgIDList("In-Reply-To", vals) case "subject": subject = strings.Join(vals, ",") -- cgit