maddy

Fork https://github.com/foxcpp/maddy

git clone git://git.lin.moe/go/maddy.git

 1# Email local part
 2
 3The module `table.email_localpart` extracts and unescapes local ("username") part
 4of the email address.
 5
 6E.g.
 7
 8* `test@example.org` => `test`
 9* `"test @ a"@example.org` => `test @ a`
10
11Mappings for invalid emails are not defined (will be treated as non-existing
12values).
13
14```
15table.email_localpart { }
16```
17
18`table.email_localpart_optional` works the same, but returns non-email strings
19as is. This can be used if you want to accept both `user@example.org` and
20`user` somewhere and treat it the same.