PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #3636

Allow specification of charsets and encoding

Details

Request #3636Allow specification of charsets and encoding
Submitted2005-02-28 14:14 UTC
Fromjamesr at totalinfosecurity dot com
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version5.0.2
OSLinux
Roadmaps1.4.0, 1.4.0a1

Comments

[2005-02-28 14:14 UTC] jamesr at totalinfosecurity dot com

Description:
------------
In creating an international webmail site, I needed to be able to specify the charset and encoding of each mime part separately. Therefore I have made modifications to your code which allow some more flexibility. Specifically:
1. You can specify encoding and charset for each mime part
2. You can specify content-disposition for attachments. This is necessary to allow multipart/text messages with several inline parts with different encodings.
3. The filename for attachments can now be encoded
4. The recipient (To: header) can now be encoded

I have created two .diff files, one for mime.php and one for mimeDecode.php. Since it is difficult to modify someone else's code, I'm sure I made lots of mistakes and there were probably easier ways to do what I wanted, but after extensive testing with many multi-byte character sets, my changes appear to work in all cases. Please let me know what you think and if I made any mistakes, please also do correct me.

Reproduce code:
---------------
http://www.totalinfosecurity.com/patches/patches.php