niax / rust-email

Implementation of MIME Messages for Rust
MIT License
62 stars 34 forks source link

Support for parsing messages with Unix line endings #43

Closed ckatzer4 closed 6 years ago

ckatzer4 commented 6 years ago

Hello,

I wanted Unix line ending support for a personal project, and I was able to get parsing working with just a few modifications. I also added a couple Unix line ending specific tests.

My changes were only to methods related to parsing - I didn't make any changes to support Unix line endings in message output from methods like MimeMessage::as_string()

I also didn't see a need to make any documentation edits - there's a few methods in rfc5322.rs that mentioned CRLF specifically, but they already supported Unix line endings.