Do not reply to messages that can't be decrypted

This commit fixes the test broken in previous commit.
This commit is contained in:
Alexander Krotov
2020-06-08 22:45:51 +03:00
committed by holger krekel
parent 35566f5ea5
commit 7de23f86b1
2 changed files with 31 additions and 10 deletions

View File

@@ -527,6 +527,7 @@ impl MimeMessage {
part.typ = Viewtype::Text;
part.msg_raw = Some(txt.clone());
part.msg = txt;
part.param.set(Param::Error, "Decryption failed");
self.parts.push(part);