diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-02 16:13:08 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-02 16:13:08 +0100 |
commit | ee89c6dff6a309bd6d024a725eb24d79b4ac1236 (patch) | |
tree | cb31685cf2c29d8501cf40f60f5ad286a88196bb /program/lib | |
parent | 588a07e41dbfa14edcef645c2deb7c041b6b867c (diff) |
Display notice that message is encrypted also for application/pkcs7-mime messages (#1488526)
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_message.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index e0c3e3475..dc7080746 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -468,6 +468,17 @@ class rcube_message $this->parts[] = $p; } + // this is an S/MIME ecrypted message -> create a plaintext body with the according message + else if ($mimetype == 'application/pkcs7-mime') { + $p = new stdClass; + $p->type = 'content'; + $p->ctype_primary = 'text'; + $p->ctype_secondary = 'plain'; + $p->mimetype = 'text/plain'; + $p->realtype = 'application/pkcs7-mime'; + + $this->parts[] = $p; + } // message contains multiple parts else if (is_array($structure->parts) && !empty($structure->parts)) { // iterate over parts |