Send mailing list replies to e.From
j3s j3s@c3f.net
Wed, 20 Nov 2019 19:09:49 -0600
1 files changed,
0 insertions(+),
6 deletions(-)
jump to
M
main.go
→
main.go
@@ -287,13 +287,7 @@
func badAddress(recipient string, e *email.Email) bool { // From + all lists should never be recipients (loop prevention) badAddresses := []string{} - m, err := mail.ParseAddress(e.From) - if err != nil { - log.Println("badAddress: Error parsing address") - log.Println(m) - } - badAddresses = append(badAddresses, m.Address) for _, list := range gConfig.Lists { badAddresses = append(badAddresses, list.Address) }