summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-04 21:03:47 +0000
committeralecpl <alec@alec.pl>2010-06-04 21:03:47 +0000
commit6749e45ed338c719735cc8ea47d83ca7e7879432 (patch)
treef6e3d975b5091f5f0acc7a2c8a11ce376de3592e /program/include
parent7c866e47e84b23b8b54c8191705707d138a82566 (diff)
- fix parsing bodystructure of messages with "Content-Type: multipart/related; type=multipart/alternative"
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 55b082048..f48372ac7 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1757,7 +1757,7 @@ class rcube_imap
// build parts list for headers pre-fetching
for ($i=0, $count=0; $i<count($part); $i++) {
- if (is_array($part[$i]) && count($part[$i]) > 3) {
+ if (is_array($part[$i]) && count($part[$i]) > 4) {
// fetch message headers if message/rfc822
// or named part (could contain Content-Location header)
if (!is_array($part[$i][0])) {
@@ -1787,7 +1787,7 @@ class rcube_imap
}
$struct->parts = array();
for ($i=0, $count=0; $i<count($part); $i++) {
- if (is_array($part[$i]) && count($part[$i]) > 3) {
+ if (is_array($part[$i]) && count($part[$i]) > 4) {
$tmp_part_id = $struct->mime_id ? $struct->mime_id.'.'.($i+1) : $i+1;
$struct->parts[] = $this->_structure_part($part[$i], ++$count, $struct->mime_id,
$mime_part_headers[$tmp_part_id], $raw_part_headers[$tmp_part_id]);