From:             bobe at phpcodeur dot net
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Mail related
Bug description:  skip_long_header_sep routine break email

Description:
------------
Hello, 

The problem arises when we envoit an email with the subject encoded in
quoted-printable and of type "long header". 

skip_long_header_sep routine accept accepts only the separations \r\n<LWS>
but on some systems, it doubles the line feed in the header: 

to test, send a long subject on a linux system

Reproduce code:
---------------
>From - Fri Jul 25 18:53:24 2003
X-UIDL: 1059152088.14117.wsa-2037,S=4715
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 14115 invoked by uid 99); 25 Jul 2003 16:54:48 -0000
To: Undisclosed-recipients: ;
Subject:
=?iso-8859-1?Q?ceci_est_un_petit_test_pour_d=E9terminer_les_bugs_?=

 =?iso-8859-1?Q?existants_avec_la_classe_mail?=
Date: Fri, 25 Jul 2003 18:54:48 +0200
From: "test" <[EMAIL PROTECTED]>
X-Env: Linux - Apache PHP/4.3.2
MIME-Version: 1.0
Message-ID: <[EMAIL PROTECTED]>
Content-Type: multipart/mixed;
        boundary="-----=_Part0_6fEwBy2N74yqUJ0vNbQYrw0HBJrhLT--"

This is a multi-part message in MIME format.

Expected result:
----------------
simply that subject of mail correctly display

Actual result:
--------------
the headers undo the long sybject aren't interpreted

-- 
Edit bug report at http://bugs.php.net/?id=24805&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24805&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24805&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24805&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24805&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24805&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24805&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24805&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24805&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24805&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24805&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24805&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24805&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24805&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24805&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24805&r=gnused

Reply via email to