mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
if a message is replaced by an error, this also removes special is_system_message states
This commit is contained in:
@@ -852,6 +852,7 @@ impl MimeMessage {
|
||||
}
|
||||
|
||||
pub fn repl_msg_by_error(&mut self, error_msg: impl AsRef<str>) {
|
||||
self.is_system_message = SystemMessage::Unknown;
|
||||
if let Some(part) = self.parts.first_mut() {
|
||||
part.typ = Viewtype::Text;
|
||||
part.msg = format!("[{}]", error_msg.as_ref());
|
||||
|
||||
Reference in New Issue
Block a user