Some libraries suffer from huge performance variations depending on the content of the mail, so this library is not always the fastest. Tests require a mail.txt file containing a raw mail next to the Cargo.toml. Run these benchmarks by yourself with rustup run nightly cargo bench and rustup run nightly cargo bench -no-default-features. This chart shows the time took to parse a single email. Thanks to this method, around 90% of the strings are references. This library tries to avoid usage of owned Strings as much as possible and is using Cow instead. ![]() So why would you pay the parsing cost of header fields you are not using? This library allows you to enable headers you need so that other header values will be parsed as an unstructured header, which is much faster.īy disabling all header value parsing, this library can parse an entire mail twice faster! But don't worry if you need everything enabled this library is blazing fast anyway! Zero-Copy (almost) No matter what you are building, you are certainly not using all of its features. unwrap(), vec!) Īssert_eq!(_part, "mubelotix") Īssert_eq!(, "v") Pay for what you use There should be read, write, and execute permission to the webhook page so that output JSON files can be pushed to the webhook URL. Create HTTP POST capturing page also known as a webhook page or webhook URL, which should be capable of capturing the JSON and publicly accessible. ![]() B"\ From: Mubelotix \r\n\ Subject:Example Email \r\n\ To: Someone \r\n\ Message-id: \r\n\ Date: 18:58:34 +0000 \r\n\ \r\n\ Hey! \r\n",Īssert_eq!(email.subject. Email Inbox parsing setup is a simple process done in 3 steps: Step 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |