php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51752 structure->ifdisposition: Pop3:OK IMAP:fail
Submitted: 2010-05-06 01:31 UTC Modified: 2020-10-18 04:22 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: asandberg at sugarcrm dot com Assigned: cmb (profile)
Status: No Feedback Package: IMAP related
PHP Version: 5.2.13 OS: Linux OS
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: asandberg at sugarcrm dot com
New email:
PHP Version: OS:

 

 [2010-05-06 01:31 UTC] asandberg at sugarcrm dot com
Description:
------------
When testing against the SmarterMail server, the imap_fetchstructure function returns 0 for ifdisposition although when connecting to the same server using pop3 returns true.  The result should be true for the IMAP connection.  C-client compiled against was 2007e. Also, the filename attribute should be present within the dparameters array, not in the parameter array.  This bug is identical to one previously fixed (17135).  Please let me know if you need any additional information. 


Test script:
---------------
Test Script:

$conn=imap_open("{localhost:143/imap}INBOX",name, pass);
imap_fetchstructure($conn,$msgNumb);


$conn=imap_open("{localhost:110/pop3}INBOX",name, pass);
imap_fetchstructure($conn,$msgNumb);

Results

[IMAP]

[1] => stdClass Object
                (
                    [type] => 3
                    [encoding] => 3
                    [ifsubtype] => 1
                    [subtype] => OCTET-STREAM
                    [ifdescription] => 0
                    [ifid] => 0
                    [bytes] => 298
                    [ifdisposition] => 0
                    [ifdparameters] => 0
                    [ifparameters] => 1
                    [parameters] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [attribute] => name
                                    [value] => sqlprov.log
                                )

                            [1] => stdClass Object
                                (
                                    [attribute] => filename
                                    [value] => sqlprov.log
                                )
                        )
                )

[POP3]
[1] => stdClass Object
                (
                    [type] => 3
                    [encoding] => 3
                    [ifsubtype] => 1
                    [subtype] => OCTET-STREAM
                    [ifdescription] => 0
                    [ifid] => 0
                    [bytes] => 298
                    [ifdisposition] => 1
                    [disposition] => ATTACHMENT
                    [ifdparameters] => 1
                    [dparameters] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [attribute] => FILENAME
                                    [value] => sqlprov.log
                                )

                        )

                    [ifparameters] => 1
                    [parameters] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [attribute] => NAME
                                    [value] => sqlprov.log
                                )

                        )

                )



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-20 14:33 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2010-05-20 14:33 UTC] mike@php.net
Can you provide a test IMAP account with a test message?
You can send credentials privatly to me.

Thank you.
 [2010-05-20 20:36 UTC] asandberg at sugarcrm dot com
-Status: Feedback +Status: Open
 [2010-05-20 20:36 UTC] asandberg at sugarcrm dot com
Hi Mike,

    I actually setup a vm image with windows and had the server running locally.  I do have a hosting account but only running ubuntu so I can't install the mail server.  Can I send you a vm image that the server is running on?  I can upload it to a public ftp site for you although it will be rather large.

Thanks,

Andreas
 [2020-10-09 15:20 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-09 15:20 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-10-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC