Documentation
¶
Overview ¶
Package avatar discovers ordinary sender avatars without asserting brand trust.
Index ¶
- func FaviconSites(domain string) []string
- func FindBIMI(ctx context.Context, lookup LookupTXT, cache *imagecache.Cache, domain string, ...) (img imagecache.Image, found bool)
- func FindFavicon(ctx context.Context, client *http.Client, cache *imagecache.Cache, host string, ...) (imagecache.Image, bool)
- func GravatarURL(email string) string
- func PersonalDomain(domain string, providerDomains []string) bool
- type LookupTXT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FaviconSites ¶
FaviconSites lists the sender domain followed by its distinct organizational domain. Each FindFavicon call has a five-second budget, so two sites take at most ten seconds.
func FindBIMI ¶ added in v1.20.0
func FindBIMI(ctx context.Context, lookup LookupTXT, cache *imagecache.Cache, domain string, canFetch func() bool) (img imagecache.Image, found bool)
FindBIMI returns the logo the sender domain publishes at default._bimi, shown like a favicon and never as verification: it reads DNS, not this message's authentication. The domain's DMARC must enforce (quarantine or reject, pct=100, no p=none or sp=none) so its spoofs are normally rejected before delivery. See docs/research/bimi-clients.md (option B).
func FindFavicon ¶
func FindFavicon(ctx context.Context, client *http.Client, cache *imagecache.Cache, host string, canFetch func() bool) (imagecache.Image, bool)
FindFavicon checks message policy before cached sources and every discovery or candidate request. canFetch is nil only for callers without a message policy.
func GravatarURL ¶
GravatarURL hashes the complete normalized address, retaining dots and tags.
func PersonalDomain ¶
PersonalDomain excludes exact public mailbox domains supplied by core and the additional public providers absent from its account-discovery list.