XLIII. IMAP, POP3 그리고 NNTP 함수

이 함수를 작동시키려면, --with-imap 옵션으로 PHP를 컴파일해야 한다. 이 옵션은 c-client 라이브러리가 요구된다. ftp://ftp.cac.washington.edu/imap/으로부터 최신 버전을 내려받아 컴파일 하시오. 그리고 c-client/c-client.a파일을 /usr/local/lib/libc-client.a로,또는 다른 링크 경로에 복사하시오. c-client/rfc822.h, mail.hlinkage.h/usr/local/include이나 다른 include경로에 복사하시오.

이 함수는 그 이름에도 불구하고, IMAP 프로토콜에만 한정되어 있지 않다. 이함수의 기초를 이루는 c-client 라이브러리는 또한 NNTP, POP3 그리고 로컬 메일함 접근 메쏘드를 지원한다.

이 문서는 여기서 제공되는 함수에 관계된 모든 주제를 설명 할 수는 없다. 더 자세한 정보는 c-client 라이브러리 소스의 문서에 제공된다 (docs/internal.txt). 그리고 다음 RFC 문서들도 이와 관련된 정보를 제공한다:

  • RFC821: Simple Mail Transfer Protocol (SMTP).

  • RFC822: Standard for ARPA internet text messages.

  • RFC2060: Internet Message Access Protocol (IMAP) Version 4rev1.

  • RFC1939: Post Office Protocol Version 3 (POP3).

  • RFC977: Network News Transfer Protocol (NNTP).

  • RFC2076: Common Internet Message Headers.

  • RFC2045 , RFC2046 , RFC2047 , RFC2048 & RFC2049: Multipurpose Internet Mail Extensions (MIME).

더 자세한 사항은 David Wood씨가 저술한 Programming Internet Email 과 Dianna Mullet씨와 Kevin Mullet씨가 같이 저술한 Managing IMAP를 참고하시오.

차례
imap_8bit --  8비트 문자열을 quoted-printable 문자열로 변환한다
imap_alerts --  이 함수는 현재 페이지 요구(page request)동안이나,또는 경고 스택(alert stack)이 리셋(reset)된 이후에 발생한 경고(alert)메시지 (물론 있다면) 모두를 돌려준다
imap_append --  특정 메일박스에 문자열 메시지를 덧붙인다.
imap_base64 -- BASE64로 엔코딩된 텍스트를 디코딩한다
imap_binary --  8비트 문자열을 base64문자열로 변환한다
imap_body -- 메시지의 본문을 읽어온다
imap_bodystruct --  Read the structure of a specified body section of a specific message
imap_check -- 현재 메일 박스를 체크한다
imap_clearflag_full -- 메시지에서 플래그(flags)를 클리어(clear)한다
imap_close -- IMAP 스트림을 닫는다
imap_createmailbox -- 새 메일 박스를 만든다
imap_delete --  현재 메일 박스에서 삭제될 메시지를 표시한다
imap_deletemailbox -- 메일 박스를 지운다
imap_errors --  이 함수는 현재 페이지 요구(page request)동안에, 또는 에러 스택(error stack)이 리셋(reset)된 이후에 발생한 IMAP 에러(물론 있다면)를 모두 돌려준다
imap_expunge -- 지움 표시된 모든 메시지를 완전히 삭제한다
imap_fetch_overview --  주어진 메시지 헤더의 전체 정보를 읽어 온다
imap_fetchbody --  메시지의 본문중에서 특정 부분을 페치한다
imap_fetchheader -- 메시지에서 헤더를 돌려준다
imap_fetchstructure --  특별한 메시지의 구조체를 읽어온다
imap_get_quota --  Retrieve the quota level settings, and usage statics per mailbox
imap_getmailboxes --  메일박스의 목록을 읽어오고, 각 메일박스에 대한 상세한 정보를 돌려준다.
imap_getsubscribed -- subscribed된 모든 메일 박스의 목록을 보여준다.
imap_header -- Read the header of the message
imap_headerinfo -- 메시지의 머릿글을 읽어온다
imap_headers --  메일박스에서 모든 메시지의 헤더를 돌려준다
imap_last_error --  이 함수는 현재 페이지 요구(page request) 동안에 발생한 IMAP 에러(물론 있다면)의 가장 나중것을 돌려준다
imap_listmailbox -- 메일박스의 목록을 읽어온다
imap_listsubscribed -- subscribed된 모든 메일박스의 목록을 보여준다
imap_mail_compose --  주어진 envelope와 body 섹션으로 구성된 MIME메시지를 만든다
imap_mail_copy -- 메일박스에 특정 메시지를 복사한다
imap_mail_move -- 메일박스에 특정 메시지를 이동시킨다
imap_mail --  이메일 메시지를 보낸다
imap_mailboxmsginfo -- 현재 메일박스에 관한 정보를 가져온다
imap_mime_header_decode -- MIME 헤더 구성요소(element)를 디코딩한다
imap_msgno --  이 함수는 주어진 UID값에 대해 메시지 일련번호(sequence number)을 넘겨준다
imap_num_msg --  현재 메일박스의 메시지 갯수를 돌려준다
imap_num_recent -- 현재 메일박스의 새로운 메시지 갯수를 돌려준다
imap_open -- 메일박스에 IMAP 스트림(stream)을 연다
imap_ping -- IMAP 스트림(stream)이 아직 사용가능한지 체크한다
imap_popen --  Open a persistant IMAP stream to a mailbox
imap_qprint -- quoted-printable 문자열을 8비트 문자열로 변환한다
imap_renamemailbox -- 메일박스의 이름을 바꾼다
imap_reopen -- 새로운 메일박스에 IMAP 스트림(stream)을 다시 연다
imap_rfc822_parse_adrlist -- 주소 문자열을 해석한다
imap_rfc822_parse_headers -- 문자열에서 메일 헤더를 해석한다
imap_rfc822_write_address --  주어진 메일박스, 호스트, 개인 정보로 적절히 형식화된 이메일 주소를 돌려준다
imap_scanmailbox --  메일박스의 텍스트중에서 검색 문자열을 갖는 메일박스의 목록을 읽어 온다
imap_search --  이 함수는 주어진 검색 기준(criteria)에 부합되는 메시지의 배열을 돌려준다
imap_set_quota -- Sets a quota for a given mailbox
imap_setacl --  Sets the ACL for a giving mailbox
imap_setflag_full -- 메시지에서 플래그(flags)를 셋(set)한다
imap_sort -- 메시지 헤더의 배열을 정렬한다
imap_status --  이 함수는 현재 메일박스 이외의 다른 메일 박스의 상태 정보를 돌려준다
imap_subscribe -- 메일 박스에 Subscribe한다
imap_thread --  Return threaded by REFERENCES tree
imap_uid --  이 함수는 주어진 메시지의 일련번호(sequence number)에 대한 UID를 돌려준다
imap_undelete --  지움 표시된 메시지의 지움 표시를 제거한다
imap_unsubscribe -- 메일박스를 Unsubscribe한다
imap_utf7_decode --  modified UTF-7 인코딩된 문자열을 디코딩한다.
imap_utf7_encode --  8비트 데이터를 UTF-7 텍스트로 변환한다.
imap_utf8 --  텍스트를 UTF8로 변환한다