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 #9976

Subject encoded twice

Details

Submitted2007-01-30 10:10 UTC
Fromfuxa_kos at unihost dot cz
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version5.1.6
OSLinux
Roadmaps1.4.0, 1.4.0a1

Comments

[2007-01-30 10:10 UTC] fuxa_kos at unihost dot cz

Description:
------------
Code fragment:
$body = $mime->get(array('text_charset'=>'UTF-8',
'text_encoding'=>'8bit', 'head_charset'=>'UTF-8'));
$hdrs = $mime->headers(array('Subject'=>('NovĂ˝ uchaze?'));

Produce:
Subject: =?UTF-8?Q?Nov=C3=BD?= =?UTF-8?Q?uchaze=C4=8D?=

Secondary effect, mail got spam score by spamassassin
SUBJECT_ENCODED_TWICE=1.723