From 761bd9fe2cd4ddeaa550f7e8390dc407f4a86218 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 20 Nov 2008 22:53:42 -0700 Subject: [PATCH] Fix numbering of message/rfc822 at root of message. --- framework/Mime/lib/Horde/Mime/Part.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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++); -- 2.11.0