mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Changes for #89
This part fetches the required message parts for pgp verification.
This commit is contained in:
parent
638128ff93
commit
fde44c0102
3 changed files with 66 additions and 66 deletions
|
|
@ -100,7 +100,7 @@ export class MessageModel extends AbstractModel {
|
|||
hasImages: false,
|
||||
hasExternals: false,
|
||||
|
||||
pgpSigned: null, // { BodyPartId: "1", SigPartId: "2", MicAlg: "pgp-sha256" }
|
||||
pgpSigned: null,
|
||||
isPgpEncrypted: false,
|
||||
pgpSignedVerifyStatus: SignedVerifyStatus.None,
|
||||
pgpSignedVerifyUser: '',
|
||||
|
|
@ -643,4 +643,29 @@ export class MessageModel extends AbstractModel {
|
|||
this.isReadReceipt()
|
||||
].join(',');
|
||||
}
|
||||
|
||||
pgpDecrypt() {
|
||||
// const message = self.message();
|
||||
// message && pgpClickHelper(message.body, message.plain(), message.getEmails(['from', 'to', 'cc']));
|
||||
/*
|
||||
pgpEncrypted: () => PgpUserStore.openpgp
|
||||
&& MessageUserStore.message() && MessageUserStore.message().isPgpEncrypted(),
|
||||
*/
|
||||
}
|
||||
|
||||
pgpVerify() {
|
||||
let params = this.pgpSigned(); // { BodyPartId: "1", SigPartId: "2", MicAlg: "pgp-sha256" }
|
||||
if (params) {
|
||||
params.Folder = this.folder;
|
||||
params.Uid = this.uid;
|
||||
rl.app.Remote.post('PgpVerify', null, params)
|
||||
.then(data => {
|
||||
console.dir(data);
|
||||
})
|
||||
.catch(error => {
|
||||
console.dir(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue