mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
Predefine vCard X-CRYPTO
This commit is contained in:
parent
af86cabcff
commit
12c2b10419
1 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,15 @@ class Contact implements \JsonSerializable
|
|||
*/
|
||||
public function setVCard(\Sabre\VObject\Component\VCard $oVCard) : void
|
||||
{
|
||||
// KDE KAddressBook entry and used by SnappyMail
|
||||
// https://github.com/sabre-io/vobject/issues/589
|
||||
$oVCard->select('X-CRYPTO')
|
||||
|| $oVCard->add('X-CRYPTO', '', [
|
||||
'allowed' => 'PGP/INLINE,PGP/MIME,S/MIME,S/MIMEOpaque',
|
||||
'signpref' => 'Ask',
|
||||
'encryptpref' => 'Ask'
|
||||
]);
|
||||
|
||||
$aWarnings = $oVCard->validate(3);
|
||||
// \error_log(\print_r($aWarnings,1));
|
||||
$this->vCard = $oVCard;
|
||||
|
|
Loading…
Reference in a new issue