[Tickets #12536] Single-part "multipart" message returns no content

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Aug 5 23:31:54 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12536
------------------------------------------------------------------------------
  Ticket             | 12536
  Created By         | gordon at contatta.com
  Summary            | Single-part "multipart" message returns no content
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


gordon at contatta.com (2013-08-05 23:31) wrote:

When parsing a "multipart" message with only a single part, I can  
never get content back from it.

$structure = \Horde_Mime_Part::parseMessage($message);
$part = $structure->getPart(1);
$out = $part->getContents();

This is (I believe) because the "length" key is never set on the array  
to get the substring containing the part itself in  
\Horde_Mime_Part::_findBoundary().  At the end of the method, it  
should check to see if there was only a single part and set the length  
to -1.



gordon at contatta.com (2013-08-05 23:31) uploaded: multipart.txt

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=multipart.txt&ticket=12536&fn=%2Fmultipart.txt





More information about the bugs mailing list