change SMTP ehlo response
Some checks failed
CI / build (push) Failing after 6s

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-09 19:14:44 -06:00
parent f4d7270915
commit 6008c8dd53
No known key found for this signature in database

View file

@ -31,7 +31,16 @@ 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-{} you had me at EHLO\r\n", self.hostname)?; write!(
writer,
"250-{} nice seeing you (again), is there anything liquid or hazardous in your mail?\r\n",
self.hostname
)?;
write!(writer, "250-X-YUMEPOST-CERTIFIED-MAIL\r\n")?;
write!(writer, "250-X-YUMEPOST-FREE-TRACKING\r\n")?;
write!(writer, "250-X-YUMEPOST-INTERNATIONAL-MAIL\r\n")?;
write!(writer, "250-X-YUMEPOST-EMAIL-PRINTING\r\n")?;
let mut capabilities = self.capabilities; let mut capabilities = self.capabilities;
while capabilities != 0 { while capabilities != 0 {