| | |
| | | */ |
| | | private function parse_plain_signed(&$p, $body) |
| | | { |
| | | if (!$this->rc->config->get('enigma_signatures', true)) { |
| | | return; |
| | | } |
| | | |
| | | $this->load_pgp_driver(); |
| | | $part = $p['structure']; |
| | | |
| | | // Verify signature |
| | | if ($this->rc->action == 'show' || $this->rc->action == 'preview') { |
| | | if ($this->rc->config->get('enigma_signatures', true)) { |
| | | if ($this->rc->action == 'show' || $this->rc->action == 'preview' || $this->rc->action == 'print') { |
| | | $sig = $this->pgp_verify($body); |
| | | } |
| | | } |
| | | |
| | | // @TODO: Handle big bodies using (temp) files |
| | |
| | | return; |
| | | } |
| | | |
| | | if ($this->rc->action != 'show' && $this->rc->action != 'preview') { |
| | | if ($this->rc->action != 'show' && $this->rc->action != 'preview' && $this->rc->action != 'print') { |
| | | return; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | // 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(); |
| | | |
| | | $struct = $p['structure']; |