Remove not needed loop from RequestMDNAddTo

This commit is contained in:
Winni Neessen 2022-09-09 11:39:08 +02:00
parent 46001dc691
commit c1d4dbedee
Signed by: wneessen
GPG key ID: 385AC9889632126E

4
msg.go
View file

@ -417,9 +417,7 @@ func (m *Msg) RequestMDNAddTo(t string) error {
return fmt.Errorf(errParseMailAddr, t, err)
}
var tl []string
for _, cl := range m.genHeader[HeaderDispositionNotificationTo] {
tl = append(tl, cl)
}
tl = append(tl, m.genHeader[HeaderDispositionNotificationTo]...)
tl = append(tl, a.String())
m.genHeader[HeaderDispositionNotificationTo] = tl
return nil