~sircmpwn/aerc

0e554a879d1b8de61e6eb7d2e7ef64e9ec99ce1b — Reto Brunner 4 days ago 7371d91
trim <> from messageIDs when handling mailto links

Co-authored-by: James Walmsley <james@fullfat-fs.co.uk>
1 files changed, 6 insertions(+), 0 deletions(-)

M widgets/aerc.go
M widgets/aerc.go => widgets/aerc.go +6 -0
@@ 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, ",")