
In HEAD the method render() in class MP_MIME_Viewer_multipart is

     function render($params)
     {
         $contents = &$params[0];

         foreach ($this->mime_part->getParts() as $part) {
             $contents->buildMessagePart($part);
         }
     }

but should be

     function render($params)
     {
         $contents = &$params[0];

         $parts = $this->mime_part->getParts();
         foreach ($parts as $part) {
             $contents->buildMessagePart($part);
         }
     }

$contents->buildMessagePart($part) modifies the array that the foreach  
construct is iterating over which is a no-no that causes my PHP 5.1  
installation to go into an infinite loop. This causes IMP to hang when  
viewing multipart messages. Patch attached.

Thanks,
Carl Thompson


