ID:               17135
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         IMAP related
 Operating System: Windows2000
 PHP Version:      4.2.0
 New Comment:

This is the total output of imap_fetchstructure when using POP:

stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1
[subtype] => MIXED [ifdescription] => 0 [ifid] => 0 [bytes] => 28390
[ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1
[parameters] => Array ( [0] => stdClass Object ( [attribute] =>
BOUNDARY [value] => ----=_NextPart_000_0047_01C1F7F9.C5E19FE0 ) )
[parts] => Array ( [0] => stdClass Object ( [type] => 1 [encoding] => 0
[ifsubtype] => 1 [subtype] => ALTERNATIVE [ifdescription] => 0 [ifid]
=> 0 [bytes] => 1162 [ifdisposition] => 0 [ifdparameters] => 0
[ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object (
[attribute] => BOUNDARY [value] =>
----=_NextPart_001_0048_01C1F7F9.C5E19FE0 ) ) [parts] => Array ( [0] =>
stdClass Object ( [type] => 0 [encoding] => 4 [ifsubtype] => 1
[subtype] => PLAIN [ifdescription] => 0 [ifid] => 0 [lines] => 8
[bytes] => 130 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters]
=> 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] =>
CHARSET [value] => iso-8859-1 ) ) ) [1] => stdClass Object ( [type] =>
0 [encoding] => 4 [ifsubtype] => 1 [subtype] => HTML [ifdescription] =>
0 [ifid] => 0 [lines] => 16 [bytes] => 696 [ifdisposition] => 0
[ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] =>
stdClass Object ( [attribute] => CHARSET [value] => iso-8859-1 ) ) ) )
) [1] => stdClass Object ( [type] => 3 [encoding] => 3 [ifsubtype] => 1
[subtype] => X-ZIP-COMPRESSED [ifdescription] => 0 [ifid] => 0 [bytes]
=> 26780 [ifdisposition] => 1 [disposition] => ATTACHMENT
[ifdparameters] => 1 [dparameters] => Array ( [0] => stdClass Object (
[attribute] => FILENAME [value] => GPLFIX.ZIP ) ) [ifparameters] => 1
[parameters] => Array ( [0] => stdClass Object ( [attribute] => NAME
[value] => GPLFIX.ZIP ) ) ) ) ) 


and the same mail with IMAP: 

stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1
[subtype] => MIXED [ifdescription] => 0 [ifid] => 0 [ifdisposition] =>
0 [ifdparameters] => 0 [ifparameters] => 0 [parameters] => stdClass
Object ( ) [parts] => Array ( [0] => stdClass Object ( [type] => 1
[encoding] => 0 [ifsubtype] => 1 [subtype] => ALTERNATIVE
[ifdescription] => 0 [ifid] => 0 [ifdisposition] => 0 [ifdparameters]
=> 0 [ifparameters] => 0 [parameters] => stdClass Object ( ) [parts] =>
Array ( [0] => stdClass Object ( [type] => 0 [encoding] => 4
[ifsubtype] => 1 [subtype] => PLAIN [ifdescription] => 0 [ifid] => 0
[lines] => 9 [bytes] => 132 [ifdisposition] => 0 [ifdparameters] => 0
[ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object (
[attribute] => charset [value] => iso-8859-1 ) ) ) [1] => stdClass
Object ( [type] => 0 [encoding] => 4 [ifsubtype] => 1 [subtype] => HTML
[ifdescription] => 0 [ifid] => 0 [lines] => 17 [bytes] => 698
[ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1
[parameters] => Array ( [0] => stdClass Object ( [attribute] => charset
[value] => iso-8859-1 ) ) ) ) ) [1] => stdClass Object ( [type] => 3
[encoding] => 3 [ifsubtype] => 1 [subtype] => X-ZIP-COMPRESSED
[ifdescription] => 0 [ifid] => 0 [bytes] => 26782 [ifdisposition] => 0
[ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] =>
stdClass Object ( [attribute] => name [value] => GPLFIX.ZIP ) ) ) ) ) 


There is diffrent between theese outputs.


Previous Comments:
------------------------------------------------------------------------

[2002-05-10 03:38:18] [EMAIL PROTECTED]

Problem: after fetcing structure and checking for dispositions with
"ifdisposition", pop3 returns TRUE when there is an disposition, but
IMAP don't. 

first i connect:
$mbox=imap_open("{localhost/pop3}INBOX",name, pass);

Fetcing structure for message 1:
$structure = imap_fetchstructure($mbox, 1);

Then checking for dispotition:
(i have a prase function thats loop trought all parts)
$structure->ifdisposition

if i connect with
localhost/pop3
it returns TRUE when there is an disposition.
but always false if i connect with:
localhost/imap or localhost or localhost:143 and so on..

Is this a bug?

phpinfo:
http://www.fjun.com/phpinfo.php



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17135&edit=1

Reply via email to