Adapt to things that changed when I rebased

This commit is contained in:
Hocuri
2025-09-03 22:02:37 +02:00
parent 286f913f6e
commit 8eb5fc528f
2 changed files with 10 additions and 1 deletions

View File

@@ -5182,7 +5182,7 @@ impl Context {
return contact::mark_contact_id_as_verified(
self,
contact_id,
ContactId::SELF,
Some(ContactId::SELF),
)
.await;
}

View File

@@ -1595,6 +1595,15 @@ impl MimeMessage {
}
}
pub fn replace_msg_by_error(&mut self, error_msg: &str) {
self.is_system_message = SystemMessage::Unknown;
if let Some(part) = self.parts.first_mut() {
part.typ = Viewtype::Text;
part.msg = format!("[{error_msg}]");
self.parts.truncate(1);
}
}
pub(crate) fn get_rfc724_mid(&self) -> Option<String> {
self.get_header(HeaderDef::MessageId)
.and_then(|msgid| parse_message_id(msgid).ok())