ZF-3041: Zend_Mime_Message::createFromMessage() broken

Description

Throws "Unknown header ignored for MimePart..." exception even if message is correctly encoded.


Index: Message.php
===================================================================
--- Message.php (revision 20)
+++ Message.php (working copy)
@@ -253,7 +253,7 @@
                  * @todo check for characterset and filename
                  */
                 // list($key, $value) = $header;
-                switch($key) {
+                switch(strtolower($key)) {
                     case 'content-type':
                         $newPart->type = $value;
                         break;
@@ -263,7 +263,7 @@
                     case 'content-id':
                         $newPart->id = trim($value,'<>');
                         break;
-                    case 'Content-Disposition':
+                    case 'content-disposition':
                         $newPart->disposition = $value;
                         break;
                     case 'content-description':

Comments

Please evaluate and categorize/assign as necessary.

Solved in SVN r11197.