summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-09-04 12:26:30 +0000
committerthomascube <thomas@roundcube.net>2006-09-04 12:26:30 +0000
commit2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 (patch)
treed97276fc3bd8fbd7eeabafce157d0a32ec00f89f /program/include/rcube_imap.inc
parentbf0452585baf0f8a1d72095095bc06b132217dbb (diff)
Little improvements for message parsing and encoding
Diffstat (limited to 'program/include/rcube_imap.inc')
-rw-r--r--program/include/rcube_imap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index bcbea816e..c4dfd2023 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -1010,10 +1010,11 @@ class rcube_imap
// get part size
if (!empty($part[6]) && $part[6]!='NIL')
$struct->size = intval($part[6]);
-
+
// read part disposition
$di = count($part) - 2;
- if (is_array($part[$di]))
+ if ((is_array($part[$di]) && count($part[$di]) == 2 && is_array($part[$di][1])) ||
+ (is_array($part[--$di]) && count($part[$di]) == 2))
{
$struct->disposition = strtolower($part[$di][0]);