From aa452971a699c60d11f1c7d5b4367805046d2b92 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 5 Aug 2025 15:22:41 +0200 Subject: [PATCH] fix: ignore case when trying to detect 'invalid unencrypted mail' and add an info-message --- src/smtp.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/smtp.rs b/src/smtp.rs index 405f4f5e0..100b567c2 100644 --- a/src/smtp.rs +++ b/src/smtp.rs @@ -414,7 +414,11 @@ pub(crate) async fn send_msg_to_smtp( .await?; } SendResult::Failure(ref err) => { - if err.to_string().contains("Invalid unencrypted mail") { + if err + .to_string() + .to_lowercase() + .contains("invalid unencrypted mail") + { let res = context .sql .query_row_optional(