From c1d4dbedee505825a43a87d30dda2df4b4c9bea9 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 9 Sep 2022 11:39:08 +0200 Subject: [PATCH] Remove not needed loop from RequestMDNAddTo --- msg.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/msg.go b/msg.go index f45ad29..00bcba7 100644 --- a/msg.go +++ b/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