Bug #17135 Updated: structure->ifdisposition: Pop3:OK IMAP:fail

From: Date: Thu, 27 Jun 2002 02:06:09 +0000
Subject: Bug #17135 Updated: structure->ifdisposition: Pop3:OK IMAP:fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12191@lists.php.net to get a copy of this message
ID: 17135 Updated by: sniper@php.net Reported By: kanelbulle@gmx.net -Status: Open +Status: Closed Bug Type: IMAP related Operating System: Windows2000 PHP Version: 4.2.0 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-05-13 11:05:33] kanelbulle@gmx.net For mor friendly reading: With pop: [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 ) ) ) With IMAP: [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 ) ) ) ------------------------------------------------------------------------ [2002-05-11 07:17:53] kanelbulle@gmx.net 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. ------------------------------------------------------------------------ [2002-05-10 03:38:18] kanelbulle@gmx.net 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

« previous php.bugs (#12191) next »