Less boring EHLO response

This commit is contained in:
mdecimus 2024-05-28 15:26:33 +02:00
parent e39724159e
commit f4d7270915
3 changed files with 2 additions and 15 deletions

13
.github/FUNDING.yml vendored
View file

@ -1,13 +0,0 @@
# These are supported funding model platforms
github: stalwartlabs
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View file

@ -8,7 +8,7 @@ license = "Apache-2.0 OR MIT"
keywords = ["smtp", "lmtp", "protocol", "parser"] keywords = ["smtp", "lmtp", "protocol", "parser"]
categories = ["email", "parser-implementations"] categories = ["email", "parser-implementations"]
readme = "README.md" readme = "README.md"
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -31,7 +31,7 @@ impl<T: Display> EhloResponse<T> {
} }
pub fn write(&self, mut writer: impl Write) -> io::Result<()> { pub fn write(&self, mut writer: impl Write) -> io::Result<()> {
write!(writer, "250-{} says hello\r\n", self.hostname)?; write!(writer, "250-{} you had me at EHLO\r\n", self.hostname)?;
let mut capabilities = self.capabilities; let mut capabilities = self.capabilities;
while capabilities != 0 { while capabilities != 0 {