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 » Bug #6854

encoding spaces in mail subject

Details

Request #6854encoding spaces in mail subject
Submitted2006-02-21 15:57 UTC
Fromsvec at jlabs dot cz
StatusBogus
PackageMail
PHP Version4.4.1
OSLinux
Roadmaps(Not assigned)

Comments

[2006-02-21 15:57 UTC] svec at jlabs dot cz

Description:
------------
in class Mail.php, PEAR didnot encodes spaces in mail subject into =20 sequence. it is not under RFC, so some email clients didnot show subject good.
it affect for example emails which are encoded in ISO-8859-2 encoding.

I have made small modification,it is on line 158, on file Mail.php in PEAR root folder, in function prepareHeaders():

if( $key == 'Subject' )
{
$value = str_replace( ' ', '=20', $value );
}