Skip to main content

dot_stuff

Function dot_stuff 

Source
pub fn dot_stuff(data: &str) -> String
Expand description

Prefix any line that starts with . with a second one.

A lone . on its own line ends the SMTP DATA phase, so a message body containing one would be truncated there — and the rest of it interpreted as SMTP commands.