mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Changes for #1587
This commit is contained in:
parent
c3c75c216b
commit
97391a3f33
2 changed files with 63 additions and 1 deletions
|
|
@ -1566,6 +1566,10 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
params.signed = signed.toString();
|
||||
params.boundary = signed.boundary;
|
||||
data = signed;
|
||||
/*
|
||||
Object.entries(PgpUserStore.getPublicKeyOfEmails([getEmail(this.from())]) || {})
|
||||
.forEach(([k,v]) => params.publicKey = v);
|
||||
*/
|
||||
} catch (e) {
|
||||
sign = false;
|
||||
console.error(e);
|
||||
|
|
@ -1579,6 +1583,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
// params.signData = data.toString();
|
||||
params.signFingerprint = signOptions[i][1].fingerprint;
|
||||
params.signPassphrase = pass;
|
||||
// params.attachPublicKey = false;
|
||||
} else {
|
||||
sign = false;
|
||||
}
|
||||
|
|
@ -1589,6 +1594,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
params.sign = 'S/MIME';
|
||||
// params.signCertificate = identity.smimeCertificate();
|
||||
// params.signPrivateKey = identity.smimeKey();
|
||||
// params.attachCertificate = false;
|
||||
if (identity.smimeKeyEncrypted()) {
|
||||
const pass = await Passphrases.ask(identity,
|
||||
i18n('SMIME/PRIVATE_KEY_OF', {EMAIL: identity.email()}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue