ID:               38712
 Updated by:       [EMAIL PROTECTED]
 Reported By:      benjamin dot podszun at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Linux 2.6
 PHP Version:      4.4.4
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




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

[2006-09-04 11:57:57] benjamin dot podszun at gmail dot com

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 this bug report at http://bugs.php.net/?id=38712&edit=1

Reply via email to