Skip to content

Commit aa45297

Browse files
committed
fix: ignore case when trying to detect 'invalid unencrypted mail' and add an info-message
1 parent 2d798f7 commit aa45297

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/smtp.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,11 @@ pub(crate) async fn send_msg_to_smtp(
414414
.await?;
415415
}
416416
SendResult::Failure(ref err) => {
417-
if err.to_string().contains("Invalid unencrypted mail") {
417+
if err
418+
.to_string()
419+
.to_lowercase()
420+
.contains("invalid unencrypted mail")
421+
{
418422
let res = context
419423
.sql
420424
.query_row_optional(

0 commit comments

Comments
 (0)