|
|
@ -444,15 +444,17 @@ class enigma_engine
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private function parse_plain_signed(&$p, $body)
|
|
|
|
private function parse_plain_signed(&$p, $body)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!$this->rc->config->get('enigma_signatures', true)) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->load_pgp_driver();
|
|
|
|
$this->load_pgp_driver();
|
|
|
|
$part = $p['structure'];
|
|
|
|
$part = $p['structure'];
|
|
|
|
|
|
|
|
|
|
|
|
// Verify signature
|
|
|
|
// Verify signature
|
|
|
|
if ($this->rc->action == 'show' || $this->rc->action == 'preview') {
|
|
|
|
if ($this->rc->action == 'show' || $this->rc->action == 'preview' || $this->rc->action == 'print') {
|
|
|
|
if ($this->rc->config->get('enigma_signatures', true)) {
|
|
|
|
|
|
|
|
$sig = $this->pgp_verify($body);
|
|
|
|
$sig = $this->pgp_verify($body);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @TODO: Handle big bodies using (temp) files
|
|
|
|
// @TODO: Handle big bodies using (temp) files
|
|
|
|
|
|
|
|
|
|
|
@ -505,7 +507,7 @@ class enigma_engine
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->rc->action != 'show' && $this->rc->action != 'preview') {
|
|
|
|
if ($this->rc->action != 'show' && $this->rc->action != 'preview' && $this->rc->action != 'print') {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -552,7 +554,7 @@ class enigma_engine
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Verify signature
|
|
|
|
// Verify signature
|
|
|
|
if ($this->rc->action == 'show' || $this->rc->action == 'preview') {
|
|
|
|
if ($this->rc->action == 'show' || $this->rc->action == 'preview' || $this->rc->action == 'print') {
|
|
|
|
$this->load_smime_driver();
|
|
|
|
$this->load_smime_driver();
|
|
|
|
|
|
|
|
|
|
|
|
$struct = $p['structure'];
|
|
|
|
$struct = $p['structure'];
|
|
|
|