From aa69ea1867ad0cdc07095f42e28ec4947b6fbb1c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 5 Oct 2007 07:07:27 +0000 Subject: [PATCH] fix for a bug in the creation of the mail-structure. MULTIPART/RELATED parts where created as structure nested too deep, comared to the structure used by the IMAP-server, when accessing the parts in question directly. --- egw-pear/Net/IMAP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egw-pear/Net/IMAP.php b/egw-pear/Net/IMAP.php index 1a2900ad98..3313ab0157 100644 --- a/egw-pear/Net/IMAP.php +++ b/egw-pear/Net/IMAP.php @@ -579,7 +579,7 @@ class Net_IMAP extends Net_IMAPProtocol { function _parseStructureMultipartArray($_structure, &$_mimeParts, $_partID, $_parentIsMessage = false) { #print "Net_IMAP::_parseStructureMultipartArray _partID: $_partID
"; - // a multipart/mixed, multipart/report or multipart/alternative get's no own partid, if the parent is message/rfc822 + // a multipart/mixed, multipart/report or multipart/alternative or multipart/related get's no own partid, if the parent is message/rfc822 if($_parentIsMessage == true && is_array($_structure[0])) { foreach($_structure as $structurePart) { if(!is_array($structurePart)) { @@ -587,7 +587,7 @@ class Net_IMAP extends Net_IMAPProtocol { break; } } - if($subType == 'mixed' || $subType == 'report' || $subType == 'alternative') { + if($subType == 'mixed' || $subType == 'report' || $subType == 'alternative' || $subType == 'related') { $_partID = substr($_partID, 0, strrpos($_partID, '.')); } }