MCPcopy Create free account
hub / github.com/foxcpp/maddy / PRECIS

Function PRECIS

framework/address/norm.go:141–143  ·  view source on GitHub ↗

PRECIS applies UsernameCasePreserved to the local part and dns.ForLookup to domain part of the address.

(addr string)

Source from the content-addressed store, hash-verified

139// PRECIS applies UsernameCasePreserved to the local part and dns.ForLookup
140// to domain part of the address.
141func PRECIS(addr string) (string, error) {
142 return precisEmail(addr, precis.UsernameCasePreserved)
143}
144
145func precisEmail(addr string, profile *precis.Profile) (string, error) {
146 mbox, domain, err := Split(addr)

Callers

nothing calls this directly

Calls 1

precisEmailFunction · 0.85

Tested by

no test coverage detected