diff options
author | Reto Brunner <reto@labrat.space> | 2021-01-12 20:21:06 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2021-01-12 20:22:34 +0100 |
commit | 0e554a879d1b8de61e6eb7d2e7ef64e9ec99ce1b (patch) | |
tree | 30a69c7691584fc2e62e2bd5e198c5d3302c5fdf /widgets/aerc.go | |
parent | 7371d91b3ceeab96afef9792c5bf151bd21f590c (diff) | |
download | aerc-0e554a879d1b8de61e6eb7d2e7ef64e9ec99ce1b.tar.gz |
trim <> from messageIDs when handling mailto links
Co-authored-by: James Walmsley <james@fullfat-fs.co.uk>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r-- | widgets/aerc.go | 6 |
1 files changed, 6 insertions, 0 deletions
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, ",") |