From 72744c5695ebe62075228bda8f4f7468ef7eea19 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Tue, 31 Aug 2004 01:20:59 +0000 Subject: [PATCH] imap_(g|s)et_acl is only available with c-client2000 or greater fix imap_bodystruct proto start documenting imap_thread # the second parameter, thread[XX.next] and thread['XX.branch'] needs to be documented git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167678 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/imap/functions/imap-bodystruct.xml | 4 +- reference/imap/functions/imap-getacl.xml | 9 ++-- reference/imap/functions/imap-setacl.xml | 8 ++- reference/imap/functions/imap-thread.xml | 52 ++++++++++++++++++-- 4 files changed, 63 insertions(+), 10 deletions(-) diff --git a/reference/imap/functions/imap-bodystruct.xml b/reference/imap/functions/imap-bodystruct.xml index 3144234141..e8e80d633c 100644 --- a/reference/imap/functions/imap-bodystruct.xml +++ b/reference/imap/functions/imap-bodystruct.xml @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ objectimap_bodystruct resourcestream_id intmsg_no - intsection + stringsection &warn.undocumented.func; diff --git a/reference/imap/functions/imap-getacl.xml b/reference/imap/functions/imap-getacl.xml index 5d5c94cb8f..1aec2a9bc7 100644 --- a/reference/imap/functions/imap-getacl.xml +++ b/reference/imap/functions/imap-getacl.xml @@ -1,5 +1,5 @@ - + imap_getacl @@ -16,9 +16,12 @@ &warn.undocumented.func; - - See also: imap_setacl. + This function is currently only available to users of the c-client2000 + or greater library. + + + See also imap_setacl. diff --git a/reference/imap/functions/imap-setacl.xml b/reference/imap/functions/imap-setacl.xml index 7d4b905bc3..6be200cf15 100644 --- a/reference/imap/functions/imap-setacl.xml +++ b/reference/imap/functions/imap-setacl.xml @@ -1,5 +1,5 @@ - + @@ -21,7 +21,11 @@ &warn.undocumented.func; - See also: imap_getacl. + This function is currently only available to users of the c-client2000 + or greater library. + + + See also imap_getacl. diff --git a/reference/imap/functions/imap-thread.xml b/reference/imap/functions/imap-thread.xml index 69376c25e5..4b3a758487 100644 --- a/reference/imap/functions/imap-thread.xml +++ b/reference/imap/functions/imap-thread.xml @@ -1,11 +1,11 @@ - + imap_thread - Return threaded by REFERENCES tree + Returns a tree of threaded message @@ -16,7 +16,53 @@ intoptions - &warn.undocumented.func; + imap_thread returns an associative array containing + a tree of messages threaded by REFERENCES, or &false; + on error. + + + Every message in the current mailbox will be represented by three entries + in the resulting array: + + + $thread["XX.num"] - current message number + + + $thread["XX.next"] + + + $thread["XX.branch"] + + + + + + <function>imap_thread</function> Example + + $val) { + $tree = explode('.', $key); + if ($tree[1] == 'num') { + $header = imap_headerinfo($nntp, $val); + echo "
    \n\t
  • " . $header->fromaddress . "\n"; + } elseif ($tree[1] == 'branch') { + echo "\t
  • \n
\n"; + } +} + +imap_close($nntp); + +?> +]]> +
+