Enigma: Handle signed content inside of encrypted message
| | |
| | | TODO (must have): |
| | | |
| | | - Fix issues with enabled messages_cache |
| | | - PGP: Handling of signed inside encrypted message |
| | | - Make working with gnupg-2.x |
| | | - Keys export to file |
| | | - Disable Reply/Forward options when viewing encrypted messages |
| | |
| | | $part->body_modified = true; |
| | | $part->encrypted = true; |
| | | |
| | | // PGP signed inside? verify signature |
| | | if (preg_match('/^-----BEGIN PGP SIGNED MESSAGE-----/', $body)) { |
| | | $this->parse_plain_signed($p, $body); |
| | | } |
| | | |
| | | // Encrypted plain message may contain encrypted attachments |
| | | // in such case attachments have .pgp extension and application/octet-stream. |
| | | // This is what happens when you select "Encrypt each attachment separately |