niax / rust-email

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

Support for Unix line endings? #33

Open jugglerchris opened 8 years ago

jugglerchris commented 8 years ago

While the RFCs clearly specify CRLF endings in emails/MIME boundaries, it turns out that e-mails are normally written to disk by the MTA with just LF on Linux/Unix systems. I would therefore find it handy to have an LF option, or simply to allow both. It would be a shame to have to convert LFs back to CRLF before feeding to MimeMessage, especially with large messages. :-)