mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
let function that search for Message-IDs accept widly used square brackets format
This commit is contained in:
@@ -1488,6 +1488,7 @@ fn is_known_rfc724_mid_in_list(context: &Context, mid_list: &str) -> bool {
|
|||||||
|
|
||||||
/// Check if a message is a reply to a known message (messenger or non-messenger).
|
/// Check if a message is a reply to a known message (messenger or non-messenger).
|
||||||
fn is_known_rfc724_mid(context: &Context, rfc724_mid: &str) -> bool {
|
fn is_known_rfc724_mid(context: &Context, rfc724_mid: &str) -> bool {
|
||||||
|
let rfc724_mid = rfc724_mid.trim_start_matches('<').trim_end_matches('>');
|
||||||
context
|
context
|
||||||
.sql
|
.sql
|
||||||
.exists(
|
.exists(
|
||||||
@@ -1534,6 +1535,7 @@ pub(crate) fn is_msgrmsg_rfc724_mid_in_list(context: &Context, mid_list: &str) -
|
|||||||
|
|
||||||
/// Check if a message is a reply to any messenger message.
|
/// Check if a message is a reply to any messenger message.
|
||||||
fn is_msgrmsg_rfc724_mid(context: &Context, rfc724_mid: &str) -> bool {
|
fn is_msgrmsg_rfc724_mid(context: &Context, rfc724_mid: &str) -> bool {
|
||||||
|
let rfc724_mid = rfc724_mid.trim_start_matches('<').trim_end_matches('>');
|
||||||
context
|
context
|
||||||
.sql
|
.sql
|
||||||
.exists(
|
.exists(
|
||||||
|
|||||||
Reference in New Issue
Block a user