Skip to main content

Module email

Module email 

Source
Expand description

Email addresses: a light validity check, and the canonical form used to find an account.

Review focus 5: one person using variants (Ana@Gmail.com, a.na+seo@gmail.com) to get extra free accounts. The canonical form lowercases the address, drops a +tag on every domain, and for Gmail also removes dots and maps googlemail.com to gmail.com.

Functionsยง

canonical
The account lookup key for an address already accepted by parse.
parse
Trims and checks that raw looks like local@domain.tld. Returns the trimmed address.