Module

Data.RFC2821

Package
purescript-address-rfc2821
Repository
garganscript/purescript-address-rfc2821

This is a lightweight interface to address-rfc2821. Use this module to parse email envelope strings. (See here where it is recommended against using regular expressions to parse emails).

Re-exports from Data.RFC2821.Internal

#Address Source

data Address

#user Source

user :: Address -> String

Return the (parsed) user parf of Address

#toString Source

toString :: Address -> String

Format Address as an envelope

#originalHost Source

originalHost :: Address -> String

Return the original host from Address

#original Source

original :: Address -> String

Return the original string from Address

#makeAddress Source

makeAddress :: String -> Either Error Address

Attempt to parse given string as an email adddress

#host Source

host :: Address -> String

Return the (parsed) host part Address

#address Source

address :: Address -> String

Format Address as a string