Re: [Patch] for Mail_mimeDecode

From: Date: Sun, 27 Jul 2003 14:51:20 +0000
Subject: Re: [Patch] for Mail_mimeDecode
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18793@lists.php.net to get a copy of this message
Ups ;-/ It seems I forgot about the attachment problem... ----- Original Message ----- From: "Heino H. Gehlsen" <heino@gehlsen.dk> To: <pear-dev@lists.php.net> Cc: <richard@phpguru.org> Sent: Sunday, July 27, 2003 2:17 PM Subject: [PEAR-DEV] [Patch] for Mail_mimeDecode > In the need of a uudecode function, that both extracted and removed > uuencoded sections from a string, I made some improvements to the existing > uudecode() in Mail_mimeDecode. > > The patched uudecode() lets the user choose between preserving all uuencoded > sections, removing only successfully extracted sections, and removing all > uuencoded blockes. Additionaly the user can provide a replacement string, > that will replace the removed sections. > > While at it, I saw that the $_input is actually only used within > Mail_mimeDecode(), and that there also is some unnessesary variable > duplication, so I also made a second patch, which takes care of this. The > patch also makes a minor change in _decode(), where 'text/plain' and > 'text/html' had separate but identical code. > > Heino > > ---------------------------------------------------------------------------- ---- > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

Attachment: [application/x-gzip] diffs.tar.gz
« previous php.pear.dev (#18793) next »