- Add public key of sender into recipient keys while encrypting a message.
This make encrypted mails in sent folder readable by sender as well.
This commit is contained in:
Hadi Nategh 2017-09-04 11:43:33 +02:00
parent ee092b0d5a
commit 4d8efd0c4a

View File

@ -1169,7 +1169,10 @@ class Mailer extends Horde_Mime_Mail
// parameters to pass on for encrypt mime part
$encrypt_params = array(
'type' => 'message',
'pubkey' => $params['recipientsCerts']
'pubkey' => array_merge(
$params['recipientsCerts'],
array($this->account->acc_smime_username => $params['senderPubKey'])
)
);
switch ($type)
{