From:             pons18 at yahoo dot com
Operating system: winxp
PHP version:      4.4.2
PHP Bug Type:     IMAP related
Bug description:  content-type format property missing

Description:
------------
if i receive an email with this content type:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

i can use imap_fetchstructure to recontruct the original email content
type, but then when i use imap_mail_compose, the format property is lost


Reproduce code:
---------------
$envelope["from"] = "[EMAIL PROTECTED]";
$part["type"] = 0;
$part["subtype"] = "PLAIN";
$part["charset"] = "iso-8859-1";
$part["format"] = "flowed";
$part["contents.data"] = "text";
$body[] = $part;
$mail = imap_mail_compose($envelope, $body);
echo $mail;


Expected result:
----------------
using imap_fetchstructure, part of the returning object is
    [parameters] => Array
        (
            [0] => stdClass Object
                (
                    [attribute] => charset
                    [value] => iso-8859-1
                )
            [1] => stdClass Object
                (
                    [attribute] => format
                    [value] => flowed
                )
        )

by fetching these parameters i get information to compose the mail such as
line 4 and 5 of example script.
then using imap_mail_compose it should generate a content-tpye like the
one from the original mail i.e.:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Actual result:
--------------
imap_mail_compose, using php source code above generete this
content-type:

Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1


format=flowed is missing

-- 
Edit bug report at http://bugs.php.net/?id=37524&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37524&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37524&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37524&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37524&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37524&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37524&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37524&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37524&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37524&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37524&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37524&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37524&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37524&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37524&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37524&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37524&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37524&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37524&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37524&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37524&r=mysqlcfg

Reply via email to