Bug #51752 [Fbk->Opn]: structure->ifdisposition: Pop3:OK IMAP:fail

2010-05-20 Thread asandberg at sugarcrm dot com
Edit report at http://bugs.php.net/bug.php?id=51752&edit=1

 ID:   51752
 User updated by:  asandberg at sugarcrm dot com
 Reported by:  asandberg at sugarcrm dot com
 Summary:  structure->ifdisposition: Pop3:OK IMAP:fail
-Status:   Feedback
+Status:   Open
 Type: Bug
 Package:  IMAP related
 Operating System: Linux OS
 PHP Version:  5.2.13

 New Comment:

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


Previous Comments:

[2010-05-20 14:33:10] m...@php.net

Can you provide a test IMAP account with a test message?

You can send credentials privatly to me.



Thank you.


[2010-05-06 01:31:17] 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

)



)



)









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


[PHP-BUG] Bug #51752 [NEW]: structure->ifdisposition: Pop3:OK IMAP:fail

2010-05-05 Thread asandberg at sugarcrm dot com
From: 
Operating system: Linux OS
PHP version:  5.2.13
Package:  IMAP related
Bug Type: Bug
Bug description:structure->ifdisposition: Pop3:OK IMAP:fail

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

)



)



)




-- 
Edit bug report at http://bugs.php.net/bug.php?id=51752&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51752&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51752&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51752&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51752&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51752&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51752&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=51752&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=51752&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=51752&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=51752&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=51752&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=51752&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=51752&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51752&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=51752&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=51752&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=51752&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=51752&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=51752&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=51752&r=nozend