mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Rename MessagePgpVerify action to PgpVerifyMessage
This commit is contained in:
parent
55e55b7bb7
commit
2fa3508c11
3 changed files with 3 additions and 7 deletions
|
|
@ -206,7 +206,7 @@ export const GnuPGUserStore = new class {
|
||||||
data.bodyPart = data.bodyPart.raw;
|
data.bodyPart = data.bodyPart.raw;
|
||||||
data.sigPart = data.sigPart.body;
|
data.sigPart = data.sigPart.body;
|
||||||
}
|
}
|
||||||
let response = await Remote.post('MessagePgpVerify', null, data);
|
let response = await Remote.post('PgpVerifyMessage', null, data);
|
||||||
if (response?.Result) {
|
if (response?.Result) {
|
||||||
return {
|
return {
|
||||||
fingerprint: response.Result.fingerprint,
|
fingerprint: response.Result.fingerprint,
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ export const OpenPGPUserStore = new class {
|
||||||
data.tryGnuPG = 0;
|
data.tryGnuPG = 0;
|
||||||
let response;
|
let response;
|
||||||
if (data.sigPartId) {
|
if (data.sigPartId) {
|
||||||
response = await Remote.post('MessagePgpVerify', null, data);
|
response = await Remote.post('PgpVerifyMessage', null, data);
|
||||||
} else if (data.bodyPart) {
|
} else if (data.bodyPart) {
|
||||||
// MimePart
|
// MimePart
|
||||||
response = { Result: { text: data.bodyPart.raw, signature: data.sigPart.body } };
|
response = { Result: { text: data.bodyPart.raw, signature: data.sigPart.body } };
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,6 @@ use MailSo\Mime\Enumerations\Header as MimeEnumHeader;
|
||||||
|
|
||||||
trait Pgp
|
trait Pgp
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Also see trait Messages::DoMessagePgpVerify
|
|
||||||
*/
|
|
||||||
|
|
||||||
public function DoGetPGPKeys() : array
|
public function DoGetPGPKeys() : array
|
||||||
{
|
{
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
@ -295,7 +291,7 @@ trait Pgp
|
||||||
/**
|
/**
|
||||||
* https://datatracker.ietf.org/doc/html/rfc3156#section-5
|
* https://datatracker.ietf.org/doc/html/rfc3156#section-5
|
||||||
*/
|
*/
|
||||||
public function DoMessagePgpVerify() : array
|
public function DoPgpVerifyMessage() : array
|
||||||
{
|
{
|
||||||
$sFolderName = $this->GetActionParam('folder', '');
|
$sFolderName = $this->GetActionParam('folder', '');
|
||||||
$iUid = (int) $this->GetActionParam('uid', 0);
|
$iUid = (int) $this->GetActionParam('uid', 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue