stalwartlabs / mail-send

E-mail delivery library for Rust with DKIM support
https://docs.rs/mail-send/
Apache License 2.0
209 stars 21 forks source link

Windowing escape for CRLF.CRLF #25

Closed hoxxep closed 10 months ago

hoxxep commented 11 months ago

This escaping intends to:

  1. Avoid \n.example_function() becoming \n..example_function()
  2. Escape \r.\n and \r.\r.
mdecimus commented 10 months ago

Thanks for the PR, this has been fixed by escaping any dots preceded by \r or \n since RFC5322 does not allow these control characters to be present separately.