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

Bug #6495 Mail_mimeDecode: Some parts of body not included in decode object
Submitted: 2006-01-15 16:41 UTC
From: alex at wdg dot com dot ua Assigned: alan_k
Status: Closed Package: Mail_mimeDecode
PHP Version: Irrelevant OS: Linux
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:39 UTC
Package:
Bug Type:
Summary:
From: alex at wdg dot com dot ua
New email:
PHP Version: Package Version: OS:

 

 [2006-01-15 16:41 UTC] alex at wdg dot com dot ua
Description: ------------ Some email message don't have boundary string at the end of messages. In this case last part of body will missed. I offer follow variant: function _boundarySplit($input, $boundary) { $parts = array(); $bs_possible = substr($boundary, 2, -2); $bs_check = '\"' . $bs_possible . '\"'; if ($boundary == $bs_check) { $boundary = $bs_possible; } $tmp = explode('--' . $boundary, $input); // CHANGES START -- check all elements of array // and add to parts only not empty for ($i = 1; $i < count($tmp); $i++) { if (trim($tmp[$i])) { $parts[] = $tmp[$i]; } } // CHANGES END return $parts; }

Comments

 [2006-04-27 14: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!
 [2010-09-02 16:39 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!