|
|
@ -919,7 +919,10 @@ class enigma_ui
|
|
|
|
$attrib['id'] = 'enigma-message';
|
|
|
|
$attrib['id'] = 'enigma-message';
|
|
|
|
|
|
|
|
|
|
|
|
if ($sig instanceof enigma_signature) {
|
|
|
|
if ($sig instanceof enigma_signature) {
|
|
|
|
$sender = ($sig->name ? $sig->name . ' ' : '') . '<' . $sig->email . '>';
|
|
|
|
$sender = $sig->name ?: '';
|
|
|
|
|
|
|
|
if ($sig->email) {
|
|
|
|
|
|
|
|
$sender .= ' <' . $sig->email . '>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($sig->valid === enigma_error::UNVERIFIED) {
|
|
|
|
if ($sig->valid === enigma_error::UNVERIFIED) {
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
@ -934,8 +937,14 @@ class enigma_ui
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
|
|
|
|
|
if ($sender) {
|
|
|
|
$msg = rcube::Q(str_replace('$sender', $sender, $this->enigma->gettext('siginvalid')));
|
|
|
|
$msg = rcube::Q(str_replace('$sender', $sender, $this->enigma->gettext('siginvalid')));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
$msg = rcube::Q(str_replace('$keyid', enigma_key::format_id($sig->id),
|
|
|
|
|
|
|
|
$this->enigma->gettext('signokey')));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($sig && $sig->getCode() == enigma_error::KEYNOTFOUND) {
|
|
|
|
else if ($sig && $sig->getCode() == enigma_error::KEYNOTFOUND) {
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
|
$attrib['class'] = 'enigmawarning';
|
|
|
|