ID: 38712 Updated by: [EMAIL PROTECTED] Reported By: benjamin dot podszun at gmail dot com Status: Open -Bug Type: IMAP related +Bug Type: Feature/Change Request Operating System: Linux 2.6 PHP Version: 4.4.4 New Comment:
Reclassified as feature request, since there is no bug. Previous Comments: ------------------------------------------------------------------------ [2006-09-04 20:30:55] benjamin dot podszun at gmail dot com No offense, but you're probably not reading the report right. I cannot provide a script that demonstrate that PHP is lacking support for functions. It would be empty. Trying to be more clear about this: php.net/imap lists lots of methods. It doesn't list (and the source lacks..) methods that wrap the imap command CAPABILITY and the imap command NAMESPACE (caps, because they are used like this in the RFC). Since the underlying c-client library, that provides the current imap implementation for php, supports these commands (I checked the source for that) I hereby ask php to include these commands into the php imap module. While the NAMESPACE command is optional (and therefor more or less a feature request) the CAPABILITY command is part of the RFC that php.net/imap links to. It's part of common imap support. There should be a wrapper in php. Since there _is_ no wrapper I cannot provide a script that reproduces the problem. I hope I provided enough feedback to get this back on track. ------------------------------------------------------------------------ [2006-09-04 20:21:03] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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