mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Changes for #342
This commit is contained in:
parent
2b97db659a
commit
af3d0dcb00
3 changed files with 11 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ class MailClient
|
|||
MimeHeader::AUTHENTICATION_RESULTS,
|
||||
MimeHeader::X_DKIM_AUTHENTICATION_RESULTS,
|
||||
MimeHeader::LIST_UNSUBSCRIBE,
|
||||
// https://autocrypt.org/level1.html#the-autocrypt-header
|
||||
MimeHeader::AUTOCRYPT,
|
||||
// SPAM
|
||||
MimeHeader::X_SPAM_STATUS,
|
||||
// MimeHeader::X_SPAM_FLAG,
|
||||
|
|
|
|||
|
|
@ -73,6 +73,9 @@ class Message implements \JsonSerializable
|
|||
|
||||
$sReadReceipt = '',
|
||||
|
||||
// https://autocrypt.org/level1.html#the-autocrypt-header
|
||||
$sAutocrypt = '',
|
||||
|
||||
$aUnsubsribeLinks = array(),
|
||||
|
||||
$aThreads = array(),
|
||||
|
|
@ -472,6 +475,8 @@ class Message implements \JsonSerializable
|
|||
$oMessage->aDraftInfo = array($sType, $iUid, $sFolder);
|
||||
}
|
||||
}
|
||||
|
||||
$oMessage->sAutocrypt = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::AUTOCRYPT);
|
||||
}
|
||||
else if ($oFetchResponse->GetEnvelope())
|
||||
{
|
||||
|
|
@ -648,6 +653,7 @@ class Message implements \JsonSerializable
|
|||
'Threads' => $this->aThreads,
|
||||
'UnsubsribeLinks' => $this->aUnsubsribeLinks,
|
||||
'ReadReceipt' => '',
|
||||
'Autocrypt' => $this->sAutocrypt,
|
||||
|
||||
'Attachments' => $this->oAttachments ? $this->oAttachments->SpecData() : null,
|
||||
|
||||
|
|
|
|||
|
|
@ -88,5 +88,8 @@ abstract class Header
|
|||
IMPORTANCE = 'Importance',
|
||||
X_PRIORITY = 'X-Priority',
|
||||
|
||||
// https://autocrypt.org/level1.html#the-autocrypt-header
|
||||
AUTOCRYPT = 'Autocrypt',
|
||||
|
||||
LIST_UNSUBSCRIBE = 'List-Unsubscribe';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue