canonicals
ModuleCanonical forms of addresses per mail provider.
Contents
use utopia_emails::Canonical;pub struct CanonicalThe canonical form of an address: its local part and domain with a provider's aliases removed.
Display.use utopia_emails::Fastmail;pub struct FastmailFastmail: keeps the local part and uses fastmail.com.
use utopia_emails::Generic;pub struct GenericThe fallback for any domain: only lower-cases the local part. Its canonical domain is empty and it lists no domains.
use utopia_emails::Gmail;pub struct GmailGmail: drops +tags and all dots; googlemail.com is gmail.com.
use utopia_emails::Icloud;pub struct IcloudiCloud, me.com and mac.com: drops +tags, keeps dots, and uses
icloud.com.
use utopia_emails::Outlook;pub struct OutlookOutlook, Hotmail, Live, MSN and Passport: drops +tags, keeps dots, and
uses outlook.com.
use utopia_emails::Protonmail;pub struct ProtonmailProton Mail: drops +tags, keeps dots and the domain (each Proton domain
is a separate address).
use utopia_emails::Walla;pub struct WallaWalla: keeps the local part; walla.com is walla.co.il.
use utopia_emails::Yahoo;pub struct YahooYahoo, Ymail and Rocketmail: keeps the local part (a -keyword is a
separate disposable address, not an alias) and uses yahoo.com.
use utopia_emails::Yandex;pub struct YandexYandex: keeps the local part and uses yandex.ru. Not in PROVIDERS.
use utopia_emails::Provider;pub trait Provider: Send + SyncA mail provider's aliasing rules. Implement it to add a provider;
crate::Email::canonical_with takes any set of them.