Skip to main content

impersonation

Function impersonation 

Source
pub fn impersonation(
    brands: &BrandWords,
    name: Option<&str>,
    domain: Option<&str>,
    own: &[String],
) -> Option<Impersonation>
Expand description

Whether a sender’s display name claims a brand, or one of own (your domains), from outside its domains. brands: the brands and public services, by the words of their name, and their domains (a sender in one of them or below it is genuine), and the words of a service, which a fake name wraps a brand or a domain in (“PayPal Service”, “janedoe.example Mail Admin”; words::BrandWords). A brand is claimed when its words are in the name (names); an everyday one, when its name stands alone or beside such words only (borrows).