php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34349 imap_fetchstructure( ) Problem with message/rfc822
Submitted: 2005-09-02 18:35 UTC Modified: 2005-09-02 22:19 UTC
From: tony123 at hotmail dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.0.4 OS: Windows XP PRO SP2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tony123 at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-09-02 18:35 UTC] tony123 at hotmail dot com
Description:
------------
Hi I found people in many webboard talked about some problem with message/rfc822 with function

imap_fetcstructure($imap,$id);
imap_fetchbody($imap,$id,"string part number");

And I've experienced with the same problem.

I tried to send an email with outlook express
attach 2 files a.eml, b.eml

with this code...

print_r(imap_fetcstructure($imap,$id));

Result...
----------------------------
......
......
......
 [1] => stdClass Object
                (
                    [type] => 2
                    [encoding] => 0
                    [ifsubtype] => 1
                    [subtype] => RFC822
                    [ifdescription] => 0
                    [ifid] => 0
                    [bytes] => 1768
                    [ifdisposition] => 0
                    [ifdparameters] => 0
                    [ifparameters] => 0
                    [parameters] => stdClass Object
                        (
                        )

                    [parts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [type] => 9
                                    [encoding] => 5
                                    [ifsubtype] => 1
                                    [subtype] => UNKNOWN
                                    [ifdescription] => 0
                                    [ifid] => 0
                                    [ifdisposition] => 0
                                    [ifdparameters] => 0
                                    [ifparameters] => 0
                                    [parameters] => stdClass Object
                                        (
                                        )

                                )

                        )
------------------------------
That's incorrect.

Same problem with the lastest cvs.(5.1.x)

Any idea?

Sorry for my Enlish and typing ?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-02 22:19 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

We have enough reports about this already. (and it's not really our problem, blame c-client)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Mar 12 04:01:30 2025 UTC