Commit
Author: Kevin Schoon [me@kevinschoon.com]
Hash: aa9046a41ef96fd62b60a0cca25384f201ddb861
Timestamp: Sun, 04 Aug 2024 11:17:08 +0000 (4 months ago)

+1 -0 +/-1 browse
initialize EHLO correctly
1diff --git a/maitred/src/session.rs b/maitred/src/session.rs
2index 9bc01da..88b7620 100644
3--- a/maitred/src/session.rs
4+++ b/maitred/src/session.rs
5 @@ -115,6 +115,7 @@ impl Session {
6 self.hostname = Some(Host::parse(host).map_err(|e| {
7 Response::General(SmtpResponse::new(500, 0, 0, 0, e.to_string()))
8 })?);
9+ self.initialized = Some(Mode::Extended);
10 let mut resp = EhloResponse::new(format!("Hello {}", host));
11 resp.capabilities = opts.capabilities;
12 resp.size = opts.maximum_size as usize;