From: Michael M Slusarz Date: Fri, 21 Nov 2008 05:53:42 +0000 (-0700) Subject: Fix numbering of message/rfc822 at root of message. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=761bd9fe2cd4ddeaa550f7e8390dc407f4a86218;p=horde.git Fix numbering of message/rfc822 at root of message. --- diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index cf655390f..e7d2ac4fc 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -1267,7 +1267,12 @@ class Horde_Mime_Part if (empty($this->_parts)) { $this->setMimeId($id . '1'); } else { - $this->setMimeId($id . '0'); + if (empty($id) && ($this->getType() == 'message/rfc822')) { + $this->setMimeId('1'); + $id = '1.'; + } else { + $this->setMimeId($id . '0'); + } $i = 1; foreach (array_keys($this->_parts) as $val) { $this->_parts[$val]->buildMimeIds($id . $i++);