|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37524 content-type format property missing
Submitted: 2006-05-19 17:14 UTC Modified: 2006-05-28 01:00 UTC
From: pons18 at yahoo dot com Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 4.4.2 OS: winxp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pons18 at yahoo dot com
New email:
PHP Version: OS:


 [2006-05-19 17:14 UTC] pons18 at yahoo dot com
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"] = "";
$part["type"] = 0;
$part["subtype"] = "PLAIN";
$part["charset"] = "iso-8859-1";
$part["format"] = "flowed";
$part[""] = "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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 14:04 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-05-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Mar 03 02:01:24 2021 UTC