#18991 [Opn]: mimeDecode bug
| From: | richard@php.net | Date: | Wed, 21 Aug 2002 08:51:01 +0000 |
| Subject: | #18991 [Opn]: mimeDecode bug | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8541@lists.php.net to get a copy of this message | ||
ID: 18991
Updated by: richard@php.net
Reported By: okin7@yahoo.fr
Status: Open
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
Thanks. The former is fixed in CVS though. Will apply this as soon as I
can be ars^H^H^H^H^H^H get to it.
:)
Previous Comments:
------------------------------------------------------------------------
[2002-08-20 13:38:30] okin7@yahoo.fr
In found two mistakes in PEAR/Mail/mimeDecode.php and corrected it :
line 467 :
switch ( $encoding ) {
replaced with :
switch ( strtolower($encoding) ) {
AND
line 278 :
$return->parts[] = $obj->decode(array(
'include_bodies' => $this->_include_bodies));
replaced with :
$return->parts[] = $obj->decode(array(
'include_bodies' => $this->_include_bodies,
'decode_bodies' => $this->_decode_bodies,
'decode_headers' => $this->_decode_headers));
I found the first bug by parsing emails send from Pine witch, in my
case, sends uppercapitalized headers.
The second one occurs when decoding a mail with a RFC822 attachment :
this attachment wasn't decoded.
Please tell me if my bug report is helpfull for you, i don't know what
is behind this reporting bug system.
Thank
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18991&edit=1