Your message dated Wed, 16 Jan 2008 20:15:25 -0800
with message-id <[EMAIL PROTECTED]>
and subject line [php-maint] Bug#447074: Close Bugreport
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: php5
Version: 5.2.0-8+etch7
Severity: normal



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (1000, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18bergfex070821
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages php5 depends on:
ii  libapache2-mod-php5        5.2.0-8+etch7 server-side, HTML-embedded scripti
ii  php5-common                5.2.0-8+etch7 Common files for packages built fr

php5 recommends no packages.

-- no debconf information

The manual of function mail() says the subject must not contain newline
characters, however they are required to fold long header fields according
to RFC2822 2.2.3., so most mailing sripts like PEAR::Mail_Mime insert linefeeds
into long subjects.

Linefeed in subjects are working fine in PHP 4.4.4-8+etch4 and PHP
5.2.4-1+b1 (sid), however in the stable version PHP 5.2.0-8+etch7 "\n" is
removed from the subject. "\r\n" works, however postfix requires "\n".

Example:

<?php
$subject = "=?ISO-8859-1?Q?Bugreport_Debian_PHP_5.2.0-8+etch7_=F6=FC=E4_(sp?=\n 
=?ISO-8859-1?Q?ecial_Characters)?=";
$to = '[EMAIL PROTECTED]';
$body = 'some text';
$header = 'From: [EMAIL PROTECTED]';
mail($to, $subject, $body, $header);
?>

It would be nice if "\n" in subjects is accepted by the mail function in the 
stable
version of PHP, too.



--- End Message ---
--- Begin Message ---
Closing per the submitter.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[EMAIL PROTECTED]                                     [EMAIL PROTECTED]

On Wed, Jan 16, 2008 at 02:53:40PM +0100, Oliver Jusinger wrote:
> Please close this bugreport, because
> 
> 1) my description was unclear: the main problem is not that \n is 
> removed, but that in PHP4 \r\n was replaced by \n in subjects, but not 
> in PHP5 any more. That's why for example PEAR::Mail_Mime (hardcoded 
> \r\n) worked with postfix and similar mail agents with PHP4, but not 
> with PHP5 any more.
> 
> 2) There is already a discussion at http://bugs.php.net/bug.php?id=15841 
> Besides, it should better be fixed in PEAR::Mail_Mime (or postfix?)


--- End Message ---

Reply via email to