diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-12-04 10:53:20 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-12-04 10:53:20 +0000 |
| commit | b41c0618308fcfdff4825079738243fe8919ba15 (patch) | |
| tree | 3c2f02263b90e1462e5cfc1c2671151cda080a6a /roundcubemail | |
| parent | 84de99f023fe11ae52add2ab3e032ef94a57c870 (diff) | |
- added comment
git-svn-id: https://svn.roundcube.net/trunk@3159 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/include/rcube_message.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php index 62f0fb0d8..4d01348fb 100644 --- a/roundcubemail/program/include/rcube_message.php +++ b/roundcubemail/program/include/rcube_message.php @@ -224,8 +224,9 @@ class rcube_message * * @param object rcube_message_part Message structure node * @param bool True when called recursively + * @param bool True when message should be parsed as message/alternative */ - private function parse_structure($structure, $recursive = false, $alternative = false) + private function parse_structure($structure, $recursive = false, $force_alternative = false) { $message_ctype_primary = strtolower($structure->ctype_primary); $message_ctype_secondary = strtolower($structure->ctype_secondary); @@ -351,7 +352,7 @@ class rcube_message ($primary_type == 'message' && ($secondary_type == 'delivery-status' || $secondary_type == 'disposition-notification'))) { // add text part if it matches the prefs - if ((!$this->parse_alternative && !$alternative) || + if ((!$this->parse_alternative && !$force_alternative) || ($secondary_type == 'html' && $this->opt['prefer_html']) || ($secondary_type == 'plain' && !$this->opt['prefer_html'])) { $mail_part->type = 'content'; |
