<commit_before># email-format

Implementation of email data structure, builder and streaming thereof.

Features include (many of these are still TBD):

* Supports MIME multipart messages via streaming (large parts never need to occupy memory
  more than a buffer at a time)
* Extensive RFC 5322 Parser/validator for email composition
* Ergonomic function signatures
* Minimal copying of data
* Implements `email` crate's `SendableEmail`, and so it works with the `lettre` crate.

## History

This project was inspired by the earlier [email](https://github.com/niax/rust-email) crate,
but was reworked from scratch due to a number of significant differences in design,
implementation and interface.

## License

Licensed under either of

 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.<commit_msg>Add to README.md<commit_after># email-format

Implementation of email data structure, builder and streaming thereof.

Features include (many of these are still TBD):

* Supports MIME multipart messages via streaming (large parts never need to occupy memory
  more than a buffer at a time)
* Extensive RFC 5322 Parser/validator for email composition
* Ergonomic function signatures
* Minimal copying of data
* Implements `email` crate's `SendableEmail`, and so it works with the `lettre` crate.

## Limitations

The parser is not sufficient for parsing incoming emails.  RFC 5322 specifically requires
such parsers to recognize obsolete syntax.  For generation of emails, obsolete syntax is
not necessary, and usage of such is obsoleted by the RFC.

## History

This project was inspired by the earlier [email](https://github.com/niax/rust-email) crate,
but was reworked from scratch due to a number of significant differences in design,
implementation and interface.

## License

Licensed under either of

 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.
{'fraction_non_alphanumeric': 0.0718294051627385, 'fraction_numerical': 0.008978675645342313, 'mean_word_length': 4.8384279475982535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3448435', 'n_tokens_mistral': 726, 'n_tokens_neox': 684, 'n_words': 333}