Forum und email

imap_mail_copy

(PHP 4, PHP 5)

imap_mail_copy — 메일박스에 특정 메시지를 복사한다

Description

int imap_mail_copy ( int $imap_stream , string $msglist , string $mbox [, int $flags ] )

성공하면 TRUE를 에러가 발생하면 FALSE를 돌려준다.

msglist 인수에 의해 지정된 메일 메시지를 특정 메일 박스에 복사한다.msglist 인수는 메시지 번호만이 아니라 범위도 된다 (» RFC2060문서에 기술 되어있다).

Flags인수는 다음 옵션들의 비트 마스트(bitmask)값이다.

  • CP_UID - the sequence numbers contain UIDS
  • CP_MOVE - Delete the messages from the current mailbox after copying