Forum und email

imap_fetchbody

(PHP 4, PHP 5)

imap_fetchbody — 메시지의 본문중에서 특정 부분을 페치한다

Description

string imap_fetchbody ( int $imap_stream , int $msg_number , string $part_number [, flags $flags ] )

이 함수는 지정된 메시지의 본문중에서 특정 섹션을 텍스트 문자열로 페치하고, 그 텍스트 문자열을 가져온다. 섹션의 요구사양(specification)은 IMAP 4 요구사양(specification)대로 바디 부분(body part) 목록의 색인으로 구분되는 단락의 정수(integer)문자열이다. 본문 각 부분들은 이 함수에 의해 디코딩되지 않는다.

imap_fetchbody()함수에 대한 옵션은 다음 리스트의 하나 이상의 비트 마스크(bitmask)값이다:

  • FT_UID - The msg_number is a UID
  • FT_PEEK - Do not set the \Seen flag if not already set
  • FT_INTERNAL - The return string is in "internal" format, without any attempt to canonicalize CRLF.