mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
#89 OpenPGP better labeling
This commit is contained in:
parent
70c55a60be
commit
949005eda7
3 changed files with 2 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ class OpenPgpKeyModel {
|
||||||
if (key.users) {
|
if (key.users) {
|
||||||
key.users.forEach(user => user.userID.email && aEmails.push(user.userID.email));
|
key.users.forEach(user => user.userID.email && aEmails.push(user.userID.email));
|
||||||
}
|
}
|
||||||
this.id = key.getKeyID().toHex();
|
this.id = key.getKeyID().toHex().toUpperCase();
|
||||||
this.fingerprint = key.getFingerprint();
|
this.fingerprint = key.getFingerprint();
|
||||||
this.can_encrypt = !!key.getEncryptionKey();
|
this.can_encrypt = !!key.getEncryptionKey();
|
||||||
this.can_sign = !!key.getSigningKey();
|
this.can_sign = !!key.getSigningKey();
|
||||||
|
|
|
||||||
|
|
@ -729,8 +729,6 @@ export class MailMessageView extends AbstractViewRight {
|
||||||
const publicKey = OpenPGPUserStore.getPublicKeyFor(sender);
|
const publicKey = OpenPGPUserStore.getPublicKeyFor(sender);
|
||||||
OpenPGPUserStore.verify(message.plain(), null/*detachedSignature*/, publicKey).then(result => {
|
OpenPGPUserStore.verify(message.plain(), null/*detachedSignature*/, publicKey).then(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
// TODO: if result.data is not cleartext then
|
|
||||||
// parse mime to find and verify signature
|
|
||||||
message.plain(result.data);
|
message.plain(result.data);
|
||||||
message.viewPlain();
|
message.viewPlain();
|
||||||
console.dir({signatures:result.signatures});
|
console.dir({signatures:result.signatures});
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
<div data-bind="component: {
|
<div data-bind="component: {
|
||||||
name: 'Checkbox',
|
name: 'Checkbox',
|
||||||
params: {
|
params: {
|
||||||
label: 'Store public key on server',
|
label: 'Backup public key on server',
|
||||||
value: backupPublicKey
|
value: backupPublicKey
|
||||||
}
|
}
|
||||||
}"></div>
|
}"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue