From:             benjamin dot podszun at gmail dot com
Operating system: Linux 2.6
PHP version:      4.4.4
PHP Bug Type:     IMAP related
Bug description:  php.net/imap doesn't support CAPABILITY, NAMESPACE etc., the 
c-client lib does.

Description:
------------
The current imap modules fails to wrap methods to query for the server
capabilities and the server namespace. This is crucial for some servers
like courier-imap with virtual shared folders, since those end up in a
different namespace and cannot be found without support for both
CAPABILITY and NAMESPACE imap support.

Reproduce code:
---------------
IMAP source transcript to show the "right way" that php should offer as
well:


Transcript on my server:

a001 capability
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
a001 OK CAPABILITY completed

-> My server supports "namespace", which is exactly what I want/need to
use

a002 namespace
* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
a002 OK NAMESPACE completed.

-> As you can see the server supports both "shared." and "#shared" for
shared folder namespaces. The latter is the one I need/use.

a003 list "" *
* LIST (\Marked \HasNoChildren) "." "INBOX"
a003 OK LIST completed

-> A wildcard list of everything, without giving any namespace. This
results in only one response: My INBOX.

a004 list "" #shared.*
* LIST (\HasNoChildren) "." "[EMAIL PROTECTED] de"
* LIST (\HasNoChildren) "." "[EMAIL PROTECTED] de"
* LIST (\HasNoChildren) "." "[EMAIL PROTECTED] de"
* LIST (\HasNoChildren) "." "[EMAIL PROTECTED] de"
* LIST (\HasNoChildren) "." "[EMAIL PROTECTED] de"
a004 OK LIST completed

-> The "right way" (tm) to list the shared namespaces.

Expected result:
----------------
Since both the RFC document php.net/imap links to and the underlying
c-client library itself support these operations, I'd expect to have any
kind of support for that methods in php as well.

Actual result:
--------------
No shared folders from php. No useable mail client in php.

-- 
Edit bug report at http://bugs.php.net/?id=38712&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38712&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38712&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38712&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38712&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38712&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38712&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38712&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38712&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38712&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38712&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38712&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38712&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38712&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38712&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38712&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38712&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38712&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38712&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38712&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38712&r=mysqlcfg

Reply via email to