cvs: phpdoc-ja /reference/imap/functions imap-append.xml imap-createmailbox.xml imap-delete.xml imap-fetch-overview.xml imap-get-quota.xml
imap-get-quotaroot.xml imap-getmailboxes.xml imap-list.xml imap-mailboxmsginfo.xml imap-open.xml imap-ping.xml imap-reopen.xml imap-set-quota.xml
imap-setflag-full.xml imap-status.xml

From: Date: Tue, 24 Jan 2006 03:12:07 +0000
Subject: cvs: phpdoc-ja /reference/imap/functions imap-append.xml imap-createmailbox.xml imap-delete.xml imap-fetch-overview.xml imap-get-quota.xml
imap-get-quotaroot.xml imap-getmailboxes.xml imap-list.xml imap-mailboxmsginfo.xml imap-open.xml imap-ping.xml imap-reopen.xml imap-set-quota.xml
imap-setflag-full.xml imap-status.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1440@lists.php.net to get a copy of this message
takagi Tue Jan 24 03:12:07 2006 UTC Modified files: /phpdoc-ja/reference/imap/functions imap-append.xml imap-createmailbox.xml imap-delete.xml imap-fetch-overview.xml imap-get-quota.xml imap-get-quotaroot.xml imap-getmailboxes.xml imap-list.xml imap-mailboxmsginfo.xml imap-open.xml imap-ping.xml imap-reopen.xml imap-set-quota.xml imap-setflag-full.xml imap-status.xml Log: sync with en.

http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-append.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-append.xml diff -u phpdoc-ja/reference/imap/functions/imap-append.xml:1.4 phpdoc-ja/reference/imap/functions/imap-append.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-append.xml:1.4 Wed Sep 14 20:58:58 2005 +++ phpdoc-ja/reference/imap/functions/imap-append.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-append"> <refnamediv> <refname>imap_append</refname> @@ -37,12 +37,12 @@ <programlisting role="php"> <![CDATA[ <?php -$stream = imap_open("{your.imap.host}INBOX.Drafts", "username", "password"); +$stream = imap_open("{imap.example.org}INBOX.Drafts", "username", "password"); $check = imap_check($stream); echo "Msg Count before append: ". $check->Nmsgs . "\n"; -imap_append($stream, "{your.imap.host}INBOX.Drafts" +imap_append($stream, "{imap.example.org}INBOX.Drafts" , "From: me@example.com\r\n" . "To: you@example.com\r\n" . "Subject: test\r\n" http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-createmailbox.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-createmailbox.xml diff -u phpdoc-ja/reference/imap/functions/imap-createmailbox.xml:1.5 phpdoc-ja/reference/imap/functions/imap-createmailbox.xml:1.6 --- phpdoc-ja/reference/imap/functions/imap-createmailbox.xml:1.5 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-createmailbox.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-createmailbox"> <refnamediv> <refname>imap_createmailbox</refname> @@ -29,8 +29,8 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "username", "password", OP_HALFOPEN) - or die("can't connect: " . imap_last_error()); +$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN) + or die("接続できません: " . imap_last_error()); $name1 = "phpnewbox"; $name2 = imap_utf7_encode("phpnewb&ouml;x"); @@ -43,8 +43,8 @@ // 作成し、その後でメールボックスの状態を確認し、最後にそれを削除して // もとの状態に戻します。 -if (@imap_createmailbox($mbox, imap_utf7_encode("{your.imap.host}INBOX.$newname"))) { - $status = @imap_status($mbox, "{your.imap.host}INBOX.$newname", SA_ALL); +if (@imap_createmailbox($mbox, imap_utf7_encode("{imap.example.org}INBOX.$newname"))) { + $status = @imap_status($mbox, "{imap.example.org}INBOX.$newname", SA_ALL); if ($status) { echo "your new mailbox '$name1' has the following status:<br />\n"; echo "Messages: " . $status->messages . "<br />\n"; @@ -53,7 +53,7 @@ echo "UIDnext: " . $status->uidnext . "<br />\n"; echo "UIDvalidity:" . $status->uidvalidity . "<br />\n"; - if (imap_renamemailbox($mbox, "{your.imap.host}INBOX.$newname", "{your.imap.host}INBOX.$name2")) { + if (imap_renamemailbox($mbox, "{imap.example.org}INBOX.$newname", "{imap.example.org}INBOX.$name2")) { echo "renamed new mailbox from '$name1' to '$name2'<br />\n"; $newname = $name2; } else { @@ -63,7 +63,7 @@ echo "imap_status on new mailbox failed: " . imap_last_error() . "<br />\n"; } - if (@imap_deletemailbox($mbox, "{your.imap.host}INBOX.$newname")) { + if (@imap_deletemailbox($mbox, "{imap.example.org}INBOX.$newname")) { echo "new mailbox removed to restore initial state<br />\n"; } else { echo "imap_deletemailbox on new mailbox failed: " . implode("<br />\n", imap_errors()) . "<br />\n"; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-delete.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-delete.xml diff -u phpdoc-ja/reference/imap/functions/imap-delete.xml:1.4 phpdoc-ja/reference/imap/functions/imap-delete.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-delete.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-delete.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-delete"> <refnamediv> <refname>imap_delete</refname> @@ -47,8 +47,8 @@ <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}INBOX", "username", "password") - or die("Can't connect: " . imap_last_error()); +$mbox = imap_open("{imap.example.org}INBOX", "username", "password") + or die("接続できません: " . imap_last_error()); $check = imap_mailboxmsginfo($mbox); echo "Messages before delete: " . $check->Nmsgs . "<br />\n"; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml diff -u phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml:1.4 phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-fetch-overview.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.18 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-fetch-overview"> <refnamediv> <refname>imap_fetch_overview</refname> @@ -112,8 +112,8 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host:143}", "username", "password") - or die("can't connect: " . imap_last_error()); +$mbox = imap_open("{imap.example.org:143}", "username", "password") + or die("接続できません: " . imap_last_error()); $overview = imap_fetch_overview($mbox, "2,4:6", 0); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-get-quota.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-get-quota.xml diff -u phpdoc-ja/reference/imap/functions/imap-get-quota.xml:1.5 phpdoc-ja/reference/imap/functions/imap-get-quota.xml:1.6 --- phpdoc-ja/reference/imap/functions/imap-get-quota.xml:1.5 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-get-quota.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.13 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-get-quota"> <refnamediv> <refname>imap_get_quota</refname> @@ -45,7 +45,7 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "mailadmin", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "mailadmin", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); $quota_value = imap_get_quota($mbox, "user.kalowsky"); @@ -79,7 +79,7 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "mailadmin", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "mailadmin", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); $quota_values = imap_get_quota($mbox, "user.kalowsky"); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml diff -u phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml:1.1 phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml:1.2 --- phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml:1.1 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-get-quotaroot.xml Tue Jan 24 03:12:07 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="function.imap-get-quotaroot"> <refnamediv> <refname>imap_get_quotaroot</refname> @@ -43,7 +43,7 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "kalowsky", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "kalowsky", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); $quota = imap_get_quotaroot($mbox, "INBOX"); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml diff -u phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml:1.5 phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml:1.6 --- phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml:1.5 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-getmailboxes.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-getmailboxes"> <refnamediv> <refname>imap_getmailboxes</refname> @@ -79,10 +79,10 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "username", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); -$list = imap_getmailboxes($mbox, "{your.imap.host}", "*"); +$list = imap_getmailboxes($mbox, "{imap.example.org}", "*"); if (is_array($list)) { foreach ($list as $key => $val) { echo "($key) "; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-list.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-list.xml diff -u phpdoc-ja/reference/imap/functions/imap-list.xml:1.1 phpdoc-ja/reference/imap/functions/imap-list.xml:1.2 --- phpdoc-ja/reference/imap/functions/imap-list.xml:1.1 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-list.xml Tue Jan 24 03:12:07 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="function.imap-list"> <refnamediv> <refname>imap_list</refname> @@ -25,10 +25,10 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "username", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); -$list = imap_list($mbox, "{your.imap.host}", "*"); +$list = imap_list($mbox, "{imap.example.org}", "*"); if (is_array($list)) { foreach ($list as $val) { echo imap_utf7_decode($val) . "<br />\n"; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml diff -u phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml:1.4 phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-mailboxmsginfo.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.17 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-mailboxmsginfo"> <refnamediv> <refname>imap_mailboxmsginfo</refname> @@ -73,7 +73,7 @@ <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}INBOX", "username", "password") +$mbox = imap_open("{imap.example.org}INBOX", "username", "password") or die("接続できません: " . imap_last_error()); $check = imap_mailboxmsginfo($mbox); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-open.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-open.xml diff -u phpdoc-ja/reference/imap/functions/imap-open.xml:1.4 phpdoc-ja/reference/imap/functions/imap-open.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-open.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-open.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-open"> <refnamediv> <refname>imap_open</refname> @@ -245,10 +245,10 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host:143}", "username", "password"); +$mbox = imap_open("{imap.example.org:143}", "username", "password"); echo "<h1>Mailboxes</h1>\n"; -$folders = imap_listmailbox($mbox, "{your.imap.host:143}", "*"); +$folders = imap_listmailbox($mbox, "{imap.example.org:143}", "*"); if ($folders == false) { echo "コールが失敗しました<br />\n"; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-ping.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-ping.xml diff -u phpdoc-ja/reference/imap/functions/imap-ping.xml:1.4 phpdoc-ja/reference/imap/functions/imap-ping.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-ping.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-ping.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-ping"> <refnamediv> <refname>imap_ping</refname> @@ -30,7 +30,7 @@ <![CDATA[ <?php -$imap = imap_open("{your.imap.host}", "mailadmin", "password"); +$imap = imap_open("{imap.example.org}", "mailadmin", "password"); // しばらく休んだ後 if (!imap_ping($imap)) { http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-reopen.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-reopen.xml diff -u phpdoc-ja/reference/imap/functions/imap-reopen.xml:1.5 phpdoc-ja/reference/imap/functions/imap-reopen.xml:1.6 --- phpdoc-ja/reference/imap/functions/imap-reopen.xml:1.5 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-reopen.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.14 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-reopen"> <refnamediv> <refname>imap_reopen</refname> @@ -13,7 +13,7 @@ <type>bool</type><methodname>imap_reopen</methodname> <methodparam><type>resource</type><parameter>imap_stream</parameter></methodparam> <methodparam><type>string</type><parameter>mailbox</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> この関数は、IMAP または NNTP サーバ上の新しい <parameter>mailbox</parameter> @@ -51,7 +51,21 @@ <para> &return.success; </para> + <example> + <title><function>imap_reopen</function> の例</title> + <programlisting role="php"> +<![CDATA[ +<?php +$mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(join(", ", imap_errors())); +// ... +imap_reopen($mbox, "{imap.example.org:143}INBOX.Sent") or die(join(", ", imap_errors())); +// .. +?> +]]> + </programlisting> + </example> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-set-quota.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-set-quota.xml diff -u phpdoc-ja/reference/imap/functions/imap-set-quota.xml:1.5 phpdoc-ja/reference/imap/functions/imap-set-quota.xml:1.6 --- phpdoc-ja/reference/imap/functions/imap-set-quota.xml:1.5 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-set-quota.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.3 --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-set-quota"> <refnamediv> <refname>imap_set_quota</refname> @@ -44,7 +44,7 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host:143}", "mailadmin", "password"); +$mbox = imap_open("{imap.example.org:143}", "mailadmin", "password"); if (!imap_set_quota($mbox, "user.kalowsky", 3000)) { echo "クォータの設定に失敗\n"; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-setflag-full.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-setflag-full.xml diff -u phpdoc-ja/reference/imap/functions/imap-setflag-full.xml:1.4 phpdoc-ja/reference/imap/functions/imap-setflag-full.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-setflag-full.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-setflag-full.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-setflag-full"> <refnamediv> <refname>imap_setflag_full</refname> @@ -42,7 +42,7 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host:143}", "username", "password") +$mbox = imap_open("{imap.example.org:143}", "username", "password") or die("接続できません: " . imap_last_error()); $status = imap_setflag_full($mbox, "2,5", "\\Seen \\Flagged"); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/imap/functions/imap-status.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/imap/functions/imap-status.xml diff -u phpdoc-ja/reference/imap/functions/imap-status.xml:1.4 phpdoc-ja/reference/imap/functions/imap-status.xml:1.5 --- phpdoc-ja/reference/imap/functions/imap-status.xml:1.4 Wed Sep 14 20:58:59 2005 +++ phpdoc-ja/reference/imap/functions/imap-status.xml Tue Jan 24 03:12:07 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/imap.xml, last change in rev 1.9 --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <refentry id="function.imap-status"> <refnamediv> <refname>imap_status</refname> @@ -65,10 +65,10 @@ <programlisting role="php"> <![CDATA[ <?php -$mbox = imap_open("{your.imap.host}", "username", "password", OP_HALFOPEN) +$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN) or die("接続できません: " . imap_last_error()); -$status = imap_status($mbox, "{your.imap.host}INBOX", SA_ALL); +$status = imap_status($mbox, "{imap.example.org}INBOX", SA_ALL); if ($status) { echo "Messages: " . $status->messages . "<br />\n"; echo "Recent: " . $status->recent . "<br />\n";
« previous php.doc.ja (#1440) next »