mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
129 lines
3.4 KiB
XML
Executable File
129 lines
3.4 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 34892f82742329af7e7b4b22be6ad21418fd9768 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="function.imap-thread" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imap_thread</refname>
|
|
<refpurpose>Retourne l'arbre des messages organisés par thread</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>array</type><type>false</type></type><methodname>imap_thread</methodname>
|
|
<methodparam><type>IMAP\Connection</type><parameter>imap</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SE_FREE</constant></initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Retourne l'arbre des messages organisés par thread.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&imap.imap-parameter.imap;
|
|
<varlistentry>
|
|
<term><parameter>flags</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
<function>imap_thread</function> retourne un tableau associatif contenant
|
|
un arbre de messages organisés par thread par <literal>REFERENCES</literal>
|
|
ou &false; en cas d'erreur.
|
|
</para>
|
|
<para>
|
|
Chaque message dans la boîte aux lettres courante sera représenté par des entrées
|
|
sous forme d'arbre dans le tableau résultant :
|
|
<itemizedlist>
|
|
<listitem><para>
|
|
<varname>$thread["XX.num"]</varname> - numéro du message courant
|
|
</para></listitem>
|
|
<listitem><para>
|
|
<varname>$thread["XX.next"]</varname>
|
|
</para></listitem>
|
|
<listitem><para>
|
|
<varname>$thread["XX.branch"]</varname>
|
|
</para></listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&imap.changelog.imap-param;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>imap_thread</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// Ici, nous affichons les threads d'un newsgroup, en HTML
|
|
|
|
$nntp = imap_open('{news.example.com:119/nntp}some.newsgroup', '', '');
|
|
$threads = imap_thread($nntp);
|
|
|
|
foreach ($threads as $key => $val) {
|
|
$tree = explode('.', $key);
|
|
if ($tree[1] == 'num') {
|
|
$header = imap_headerinfo($nntp, $val);
|
|
echo "<ul>\n\t<li>" . $header->fromaddress . "\n";
|
|
} elseif ($tree[1] == 'branch') {
|
|
echo "\t</li>\n</ul>\n";
|
|
}
|
|
}
|
|
|
|
imap_close($nntp);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|