mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
Don't flood the log
with `src/message.rs:1794: Empty rfc724_mid passed to rfc724_mid_exists` messages
This commit is contained in:
@@ -777,13 +777,11 @@ impl Message {
|
|||||||
pub async fn quoted_message(&self, context: &Context) -> Result<Option<Message>, Error> {
|
pub async fn quoted_message(&self, context: &Context) -> Result<Option<Message>, Error> {
|
||||||
if self.param.get(Param::Quote).is_some() {
|
if self.param.get(Param::Quote).is_some() {
|
||||||
if let Some(in_reply_to) = &self.in_reply_to {
|
if let Some(in_reply_to) = &self.in_reply_to {
|
||||||
if let Some((_folder, _uid, msg_id)) = rfc724_mid_exists(
|
let rfc724_mid = in_reply_to.trim_start_matches('<').trim_end_matches('>');
|
||||||
context,
|
if !rfc724_mid.is_empty() {
|
||||||
in_reply_to.trim_start_matches('<').trim_end_matches('>'),
|
if let Some((_, _, msg_id)) = rfc724_mid_exists(context, rfc724_mid).await? {
|
||||||
)
|
return Ok(Some(Message::load_from_db(context, msg_id).await?));
|
||||||
.await?
|
}
|
||||||
{
|
|
||||||
return Ok(Some(Message::load_from_db(context, msg_id).await?));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user