From ef04e0bb776331deb5127c5fc72b9a0b6ab87fc5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 28 Aug 2017 14:22:55 +0200 Subject: [PATCH] S/MIME: - use acc_smime_username for fetching smime certificate --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 75b984dc28..e52b368cbb 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -7425,7 +7425,7 @@ class Mail { $AB_bo = new \addressbook_bo(); $credents = Mail\Credentials::read($this->profileID, Mail\Credentials::SMIME, $GLOBALS['egw_info']['user']['account_id']); - $certkey = $AB_bo->get_smime_keys($this->icServer->ident_email); + $certkey = $AB_bo->get_smime_keys($credents['acc_smime_username']); if (!$this->smime->verifyPassphrase($credents['acc_smime_password'], $_passphrase)) { return array (