mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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
|
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);
|
$aWarnings = $oVCard->validate(3);
|
||||||
// \error_log(\print_r($aWarnings,1));
|
// \error_log(\print_r($aWarnings,1));
|
||||||
$this->vCard = $oVCard;
|
$this->vCard = $oVCard;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue