mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 20:44:28 +01:00
S/MIME:
- Rephrase warning message for reading encrypted mails with no relevant pubkey and privkey - If no mimeType provided set it to default type from mime object
This commit is contained in:
parent
bde19f6f6c
commit
ee092b0d5a
@ -7346,7 +7346,7 @@ class Mail
|
||||
), $_params);
|
||||
|
||||
$metadata = array (
|
||||
'mimeType' => $params['mimeType']
|
||||
'mimeType' => $params['mimeType']?$params['mimeType']:$_mime_part->getType()
|
||||
);
|
||||
$this->smime = new Mail\Smime;
|
||||
$message = $this->getMessageRawBody($params['uid'], null, $params['mailbox']);
|
||||
@ -7358,7 +7358,9 @@ class Mail
|
||||
}
|
||||
catch(\Horde_Crypt_Exception $e)
|
||||
{
|
||||
throw new Mail\Smime\PassphraseMissing(lang('Could not decrypt S/MIME data. This message may not be encrypted by your public key.'));
|
||||
throw new Mail\Smime\PassphraseMissing(lang('Could not decrypt '.
|
||||
'S/MIME data. This message may not be encrypted by your '.
|
||||
'public key and not being able to find corresponding private key.'));
|
||||
}
|
||||
$metadata['encrypted'] = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user