avatar

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package avatar discovers ordinary sender avatars without asserting brand trust.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FaviconSites

func FaviconSites(domain string) []string

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 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

func GravatarURL(email string) string

GravatarURL hashes the complete normalized address, retaining dots and tags.

func PersonalDomain

func PersonalDomain(domain string, providerDomains []string) bool

PersonalDomain excludes exact public mailbox domains supplied by core and the additional public providers absent from its account-discovery list.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL