A wicked, fast UTF-8 email address parser and serializer. It provides
addr-spec
in
RFC 5322),This crate supports the following features:
literals
- This allows parsing and serialization of literal domains.white-spaces
- This allows parsing (but not serialization; see
Caveats) of whitepaces.Serializing folding white spaces (abbr. FWS) is not supported since it is
dependent on the transport mechanism. The is_quoted
and is_literal
functions
can be used to manually serialize the email if required. (Just be sure to use
these functions before consuming the address into_parts
!)
At the moment, comments are not supported. All the utilities for parsing them do internally exist within the library, however parsing them decreases performance. If you would like support for comments, please file an issue with your use-case.