|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesimap_capability.patch (last revision 2013-04-02 08:19 UTC by michael dot radzewitz at freenet-ag dot de)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-04 20:30 UTC] benjamin dot podszun at gmail dot com
[2006-09-04 20:52 UTC] benjamin dot podszun at gmail dot com
[2006-09-04 20:52 UTC] tony2001@php.net
[2006-09-15 14:42 UTC] benjamin dot podszun at gmail dot com
[2011-02-21 21:20 UTC] jani@php.net
-Summary: php.net/imap doesn't support
CAPABILITY, NAMESPACE etc., the c-client lib does.
+Summary: Add support for CAPABILITY,
NAMESPACE etc.
-Package: Feature/Change Request
+Package: IMAP related
-Operating System: all
+Operating System: *
-PHP Version: all
+PHP Version: 5.3
[2013-03-28 15:17 UTC] michael dot radzewitz at freenet-ag dot de
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
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) "." "#shared.support@mydomain de" * LIST (\HasNoChildren) "." "#shared.sql-bugs@mydomain de" * LIST (\HasNoChildren) "." "#shared.treffen@mydomain de" * LIST (\HasNoChildren) "." "#shared.presse@anotherdomain de" * LIST (\HasNoChildren) "." "#shared.info@anotherdomain 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.