mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
Remove not needed loop from RequestMDNAddTo
This commit is contained in:
parent
46001dc691
commit
c1d4dbedee
1 changed files with 1 additions and 3 deletions
4
msg.go
4
msg.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue