(req outbound.SendRequest)
| 64 | } |
| 65 | |
| 66 | func allRecipients(req outbound.SendRequest) []string { |
| 67 | out := make([]string, 0, len(req.To)+len(req.CC)+len(req.BCC)) |
| 68 | out = append(out, req.To...) |
| 69 | out = append(out, req.CC...) |
| 70 | out = append(out, req.BCC...) |
| 71 | return out |
| 72 | } |
| 73 | |
| 74 | func domainOf(addr string) string { |
| 75 | if i := strings.LastIndex(addr, "@"); i >= 0 { |
no test coverage detected