ID: 37524 Updated by: [EMAIL PROTECTED] Reported By: pons18 at yahoo dot com -Status: Open +Status: Feedback Bug Type: IMAP related Operating System: winxp PHP Version: 4.4.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-05-19 17:14:23] pons18 at yahoo dot com 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 this bug report at http://bugs.php.net/?id=37524&edit=1