mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Found more JSON properties to change into JavaScript camelCase
This commit is contained in:
parent
b9ef8ae2c9
commit
974350ebee
45 changed files with 361 additions and 412 deletions
|
|
@ -20,6 +20,6 @@ DomainAdminStore.fetch = () => {
|
|||
);
|
||||
}
|
||||
}, {
|
||||
IncludeAliases: 1
|
||||
includeAliases: 1
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export const GnuPGUserStore = new class {
|
|||
}, {
|
||||
keyId: key.id,
|
||||
isPrivate: isPrivate,
|
||||
Passphrase: pass
|
||||
passphrase: pass
|
||||
}
|
||||
);
|
||||
if (isPrivate) {
|
||||
|
|
@ -115,7 +115,7 @@ export const GnuPGUserStore = new class {
|
|||
}
|
||||
callback?.(iError, oData);
|
||||
}, {
|
||||
Key: key
|
||||
key: key
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -181,10 +181,10 @@ export const GnuPGUserStore = new class {
|
|||
uid: message.uid,
|
||||
partId: pgpInfo.PartId,
|
||||
keyId: key.id,
|
||||
Passphrase: await askPassphrase(key, 'BUTTON_DECRYPT'),
|
||||
Data: '' // message.plain() optional
|
||||
passphrase: await askPassphrase(key, 'BUTTON_DECRYPT'),
|
||||
data: '' // message.plain() optional
|
||||
}
|
||||
if (null !== params.Passphrase) {
|
||||
if (null !== params.passphrase) {
|
||||
const result = await Remote.post('GnupgDecrypt', null, params);
|
||||
if (result?.Result && false !== result.Result.data) {
|
||||
return result.Result;
|
||||
|
|
@ -202,9 +202,9 @@ export const GnuPGUserStore = new class {
|
|||
// let mode = await this.hasPublicKeyForEmails([sender]);
|
||||
data.folder = message.folder;
|
||||
data.uid = message.uid;
|
||||
if (data.BodyPart) {
|
||||
data.BodyPart = data.BodyPart.raw;
|
||||
data.SigPart = data.SigPart.body;
|
||||
if (data.bodyPart) {
|
||||
data.bodyPart = data.bodyPart.raw;
|
||||
data.sigPart = data.sigPart.body;
|
||||
}
|
||||
let response = await Remote.post('MessagePgpVerify', null, data);
|
||||
if (response?.Result) {
|
||||
|
|
|
|||
|
|
@ -331,8 +331,8 @@ MessagelistUserStore.setAction = (sFolderFullName, iSetAction, messages) => {
|
|||
}
|
||||
Remote.request('MessageSetSeen', null, {
|
||||
folder: sFolderFullName,
|
||||
Uids: rootUids.join(','),
|
||||
SetAction: iSetAction == MessageSetAction.SetSeen ? 1 : 0
|
||||
uids: rootUids.join(','),
|
||||
setAction: iSetAction == MessageSetAction.SetSeen ? 1 : 0
|
||||
});
|
||||
break;
|
||||
|
||||
|
|
@ -340,8 +340,8 @@ MessagelistUserStore.setAction = (sFolderFullName, iSetAction, messages) => {
|
|||
case MessageSetAction.UnsetFlag:
|
||||
Remote.request('MessageSetFlagged', null, {
|
||||
folder: sFolderFullName,
|
||||
Uids: rootUids.join(','),
|
||||
SetAction: iSetAction == MessageSetAction.SetFlag ? 1 : 0
|
||||
uids: rootUids.join(','),
|
||||
setAction: iSetAction == MessageSetAction.SetFlag ? 1 : 0
|
||||
});
|
||||
break;
|
||||
// no default
|
||||
|
|
|
|||
|
|
@ -219,12 +219,13 @@ export const OpenPGPUserStore = new class {
|
|||
if (data && publicKey) {
|
||||
data.folder = message.folder;
|
||||
data.uid = message.uid;
|
||||
data.GnuPG = 0;
|
||||
data.tryGnuPG = 0;
|
||||
let response;
|
||||
if (data.sigPartId) {
|
||||
response = await Remote.post('MessagePgpVerify', null, data);
|
||||
} else if (data.BodyPart) {
|
||||
response = { Result: { text: data.BodyPart.raw, signature: data.SigPart.body } };
|
||||
} else if (data.bodyPart) {
|
||||
// MimePart
|
||||
response = { Result: { text: data.bodyPart.raw, signature: data.sigPart.body } };
|
||||
} else {
|
||||
response = { Result: { text: message.plain(), signature: null } };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue