mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
pre-verify S/MIME opaque signed messages so we have a body to view
This commit is contained in:
parent
a98f8aa1f6
commit
5552d3c1b9
7 changed files with 44 additions and 27 deletions
|
|
@ -24,6 +24,8 @@ import { LanguageStore } from 'Stores/Language';
|
|||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { MimeToMessage } from 'Mime/Utils';
|
||||
|
||||
const
|
||||
msgHtml = msg => cleanHtml(msg.html(), msg.attachments(), '#rl-msg-' + msg.hash),
|
||||
|
||||
|
|
@ -196,6 +198,11 @@ export class MessageModel extends AbstractModel {
|
|||
return options;
|
||||
}
|
||||
});
|
||||
|
||||
this.smimeSigned.subscribe(value => {
|
||||
value?.body && MimeToMessage(value.body, this);
|
||||
value?.body && this.smimeVerified(value.verified);
|
||||
});
|
||||
}
|
||||
|
||||
get requestHash() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue