diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-05 17:35:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-05 17:35:12 +0000 |
| commit | 247039e1a2f5619009ed054733b320bba4038227 (patch) | |
| tree | cbd0d05d132a82a893d6c8b2e8af81796de52614 /roundcubemail/program/include | |
| parent | 920713e287f23e582d4739db86dc177c1c26a2d1 (diff) | |
Fix structure parsing and html output for multipart messages
git-svn-id: https://svn.roundcube.net/trunk@1480 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 43c311735..574ed6cc2 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1074,7 +1074,7 @@ class rcube_imap $struct->ctype_primary = 'multipart'; // find first non-array entry - for ($i=1; count($part); $i++) + for ($i=1; $i<count($part); $i++) if (!is_array($part[$i])) { $struct->ctype_secondary = strtolower($part[$i]); @@ -1085,7 +1085,7 @@ class rcube_imap $struct->parts = array(); for ($i=0, $count=0; $i<count($part); $i++) - if (is_array($part[$i]) && count($part[$i]) > 5) + if (is_array($part[$i]) && count($part[$i]) > 3) $struct->parts[] = $this->_structure_part($part[$i], ++$count, $struct->mime_id); return $struct; |
