FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=6495&edit=1

ID: 6495
Updated by: alan@akbkhome.com
Reported By: alex at wdg dot com dot ua
Summary: Mail_mimeDecode: Some parts of body not included in
decode object
-Status: Open
+Status: Closed
Type: Bug
Package: Mail_mimeDecode
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: alan_k
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: alan_k
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2006-04-27 10:35:08] cipri

Moved to Mail_MimeDecode subpackage.

------------------------------------------------------------------------

[2006-01-15 11:41:20] 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;
}

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 2, '10 at 12:40p
activeSep 2, '10 at 12:40p
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase