trim <> from messageIDs when handling mailto links
Co-authored-by: James Walmsley <james@fullfat-fs.co.uk>
This commit is contained in:
parent
7371d91b3c
commit
0e554a879d
1 changed files with 6 additions and 0 deletions
|
@ -514,6 +514,12 @@ func (aerc *Aerc) Mailto(addr *url.URL) error {
|
||||||
}
|
}
|
||||||
h.SetAddressList("Cc", list)
|
h.SetAddressList("Cc", list)
|
||||||
case "in-reply-to":
|
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)
|
h.SetMsgIDList("In-Reply-To", vals)
|
||||||
case "subject":
|
case "subject":
|
||||||
subject = strings.Join(vals, ",")
|
subject = strings.Join(vals, ",")
|
||||||
|
|
Loading…
Reference in a new issue