stalwartlabs / mail-send

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

Windowing escape for CRLF.CRLF #25

Closed hoxxep closed 8 months ago

hoxxep commented 8 months ago

This escaping intends to:

  1. Avoid \n.example_function() becoming \n..example_function()
  2. Escape \r.\n and \r.\r.
mdecimus commented 8 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.