mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Adapt to things that changed when I rebased
This commit is contained in:
@@ -5182,7 +5182,7 @@ impl Context {
|
|||||||
return contact::mark_contact_id_as_verified(
|
return contact::mark_contact_id_as_verified(
|
||||||
self,
|
self,
|
||||||
contact_id,
|
contact_id,
|
||||||
ContactId::SELF,
|
Some(ContactId::SELF),
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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> {
|
pub(crate) fn get_rfc724_mid(&self) -> Option<String> {
|
||||||
self.get_header(HeaderDef::MessageId)
|
self.get_header(HeaderDef::MessageId)
|
||||||
.and_then(|msgid| parse_message_id(msgid).ok())
|
.and_then(|msgid| parse_message_id(msgid).ok())
|
||||||
|
|||||||
Reference in New Issue
Block a user