fix: ignore case when trying to detect 'invalid unencrypted mail' and add an info-message

This commit is contained in:
B. Petersen
2025-08-05 15:22:41 +02:00
committed by bjoern
parent 2d798f7cfe
commit aa452971a6

View File

@@ -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(