Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #5730 Mail_MimeDecode: Incorrect Mail decode - no body
Submitted: 2005-10-20 09:44 UTC
From: nicolas at isaveurs dot com Assigned:
Status: Suspended Package: Mail_mimeDecode
PHP Version: 5.0.5 OS:
Roadmaps: 1.6.0    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2010-09-02 16:35 UTC
Package:
Bug Type:
Summary:
From: nicolas at isaveurs dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-10-20 09:44 UTC] nicolas at isaveurs dot com
Description: ------------ Incorrect Mail Decode. Decoder unable to give back the body of a multipart mail message when there is only one part. Test script: --------------- $thisMessage=file_get_contents('http://www.isaveurs.com/tmp/tst.html'); $params['include_bodies'] = TRUE; $params['decode_bodies'] = TRUE; $params['decode_headers'] = TRUE; $decoder = new Mail_mimeDecode($thisMessage); $messStruct = $decoder->decode($params); // messStruct will have no parts[]. ?? Patch ?? line 503 in mimeDecode::_boundarySplit for ($i = 1; $i < count($tmp)-1 ; $i++) { should be for ($i = 1; $i < count($tmp) ; $i++) { Clearly, it works with this code in this special case - haven't tested it with other mails samples to see any side effect. Expected result: ---------------- $messStruct should have one parts[]. Actual result: -------------- messStruct will has no parts[].

Comments

 [2006-03-06 09:36 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-04-27 14:34 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-09-02 16:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!