aboutsummaryrefslogtreecommitdiff
path: root/src/smtp_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/smtp_server.rs')
-rw-r--r--src/smtp_server.rs12
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"),
}
}
}
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj