#45955 [Opn->Csd]: Mime-encoded UTF-8 subject is limited to 47 characters.

From: Date: Wed, 05 Nov 2008 09:38:30 +0000
Subject: #45955 [Opn->Csd]: Mime-encoded UTF-8 subject is limited to 47 characters.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1338@lists.php.net to get a copy of this message
 ID:               45955
 Updated by:       vrana@php.net
 Reported By:      alexanderpas at yahoo dot co dot uk
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Irrelevant
 PHP Version:      5.2.6
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"Subject must satisfy RFC 2047."


Previous Comments:
------------------------------------------------------------------------

[2008-09-08 10:49:53] indeyets@php.net

Multiline subjects work just fine, actually.
Looks like a documentation problem

------------------------------------------------------------------------

[2008-08-30 16:49:29] alexanderpas at yahoo dot co dot uk

Description:
------------
an Mime-encoded UTF-8 subject is limited to 47 characters, because php
doesn't allow \n into $subject of the mail function, and RFC 2047
requires CRLF SPACE to seperate multiple lines of encoded text

php documentation:
<quote>mail() [...] $subject [...] must not contain any newline
characters, or the mail may not be sent properly.</quote>

RFC 2047
<quote>An 'encoded-word' may not be more than 75 characters long,
including 'charset', 'encoding', 'encoded-text', and delimiters. If it
is desirable to encode more text than will fit in an 'encoded-word' of
75 characters, multiple 'encoded-word's (separated by CRLF SPACE) may be
used.</quote>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45955&edit=1



Thread (2 messages)

« previous php.doc.bugs (#1338) next »