mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
fix: ignore case when trying to detect 'invalid unencrypted mail' and add an info-message
This commit is contained in:
@@ -414,7 +414,11 @@ pub(crate) async fn send_msg_to_smtp(
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
SendResult::Failure(ref err) => {
|
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
|
let res = context
|
||||||
.sql
|
.sql
|
||||||
.query_row_optional(
|
.query_row_optional(
|
||||||
|
|||||||
Reference in New Issue
Block a user