Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: imap_reopen - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imap_rfc822_parse_adrlist" width="11" height="7"/> <imap_renamemailbox
Last updated: Thu, 31 May 2007

view this page in

imap_reopen

(PHP 4, PHP 5)

imap_reopen — 新規メールボックスへの IMAP ストリームを再度オープンする

説明

bool imap_reopen ( resource $imap_stream, string $mailbox [, int $options [, int $n_retries]] )

IMAP または NNTP サーバ上の新しい mailbox に対して指定されたストリームを再オープンします。

パラメータ

imap_stream

imap_open() が返す IMAP ストリーム。

mailbox

メールボックス名。詳細は imap_open() を参照ください。

options

options はビットマスクであり、以下の組み合わせとなります。

  • OP_READONLY - メールボックスを読み込み専用でオープンします。
  • OP_ANONYMOUS - ニュースに関して .newsrc を使用せず、更新もしません(NNTP のみ)。
  • OP_HALFOPEN - IMAP および NNTP 名について、接続をオープンするが メールボックスをオープンしません。
  • CL_EXPUNGE - メールボックスを閉じた際に、自動的に メールボックスを削除する(imap_delete() および imap_expunge() も参照ください)。

n_retries

接続試行の最大数。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

変更履歴

バージョン説明
5.2.0n_retries が追加されました。

例 1014. imap_reopen() の例

<?php
$mbox
= imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
// ...
imap_reopen($mbox, "{imap.example.org:143}INBOX.Sent") or die(implode(", ", imap_errors()));
// ..
?>



add a note add a note User Contributed Notes
imap_reopen
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites