#18991 [Opn->Fbk]: mimeDecode bug

From: Date: Mon, 25 Nov 2002 05:36:19 +0000
Subject: #18991 [Opn->Fbk]: mimeDecode bug
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11068@lists.php.net to get a copy of this message
ID: 18991 Updated by: iliaa@php.net Reported By: okin7@yahoo.fr -Status: Open +Status: Feedback Bug Type: PEAR related Operating System: Linux PHP Version: 4.1.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-21 04:51:00] richard@php.net 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. :) ------------------------------------------------------------------------ [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

« previous php.pear.dev (#11068) next »