Forum und email

imap_reopen

(PHP 4, PHP 5)

imap_reopen — 새로운 메일박스에 IMAP 스트림(stream)을 다시 연다

Description

int imap_reopen ( int $imap_stream , string $mailbox [, string $flags ] )

이 함수는 IMAP 또는 NNTP 서버에서 새로운 메일박스에 특정 스트림(stream)을 다시 연다.

옵션은 다음의 한개 이상의 비트마스트(bit mask)값이다:

  • OP_READONLY - Open mailbox read-only
  • OP_ANONYMOUS - Dont use or update a .newsrc for news (NNTP only)
  • OP_HALFOPEN - For IMAP and NNTP names, open a connection but dont open a mailbox.
  • CL_EXPUNGE - Expunge mailbox automatically upon mailbox close (see also imap_delete() and imap_expunge())

성공하면 TRUE를 리턴하고 에러가 발생하면 FALSE를 리턴한다.