diff options
Diffstat (limited to 'src/smtp_server.rs')
| -rw-r--r-- | src/smtp_server.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/smtp_server.rs b/src/smtp_server.rs index b4f59db..6e48bce 100644 --- a/src/smtp_server.rs +++ b/src/smtp_server.rs @@ -232,12 +232,12 @@ enum Reply { impl std::fmt::Display for Reply { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Reply::Ready(hostname) => write!(f, "220 {}", hostname), - Reply::Completed(hostname) => write!(f, "250 {}", hostname), - Reply::InvalidCommand => write!(f, "500 Invalid command"), - Reply::InvalidParameter => write!(f, "501 Parameter error"), - Reply::BadSequence => write!(f, "503 Bad sequence of commands"), - Reply::StartMailInput => write!(f, "354 <CRLF>.<CRLF>"), + Reply::Ready(hostname) => write!(f, "220 {}\r\n", hostname), + Reply::Completed(hostname) => write!(f, "250 {}\r\n", hostname), + Reply::InvalidCommand => write!(f, "500 Invalid command\r\n"), + Reply::InvalidParameter => write!(f, "501 Parameter error\r\n"), + Reply::BadSequence => write!(f, "503 Bad sequence of commands\r\n"), + Reply::StartMailInput => write!(f, "354 <CRLF>.<CRLF>\r\n"), } } } |
