MCPcopy Create free account
hub / github.com/buggregator/server / matchAddresses

Function matchAddresses

modules/smtp/api.go:409–418  ·  view source on GitHub ↗
(addrs []EmailAddress, query string)

Source from the content-addressed store, hash-verified

407}
408
409func matchAddresses(addrs []EmailAddress, query string) bool {
410 lq := strings.ToLower(query)
411 for _, a := range addrs {
412 if strings.Contains(strings.ToLower(a.Email), lq) ||
413 strings.Contains(strings.ToLower(a.Name), lq) {
414 return true
415 }
416 }
417 return false
418}
419
420// extractLinks gathers all unique URLs from a message's HTML and text parts.
421func extractLinks(email *ParsedEmail) []Link {

Callers 1

matchesFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected