Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 10879

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>IMAP, POP3 and NNTP Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="imagick_zoom"
HREF="function.imagick-zoom.html"><LINK
REL="NEXT"
TITLE="imap_8bit"
HREF="function.imap-8bit.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.imagick-zoom.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.imap-8bit.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.imap"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>LXVII. IMAP, POP3 and NNTP Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN94874"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.intro"
>简介</A
></H1
><P
>&#13;     These functions enable you to operate with the <ACRONYM
CLASS="acronym"
>IMAP</ACRONYM
>
     protocol, as well as the <ACRONYM
CLASS="acronym"
>NNTP</ACRONYM
>, <ACRONYM
CLASS="acronym"
>POP3</ACRONYM
>
     and local mailbox access methods.
    </P
><P
>&#13;     Be warned however, that some of IMAP functions will not work correctly
     with the POP protocol.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.requirements"
>需求</A
></H1
><P
>&#13;     This extension requires the c-client library to be installed.
     Grab the latest version from <A
HREF="ftp://ftp.cac.washington.edu/imap/"
TARGET="_top"
>ftp://ftp.cac.washington.edu/imap/</A
>
     and compile it.
    </P
><P
>&#13;     It's important that you do not copy the IMAP source files directly into
     the system include directory as there may be conflicts.  Instead, create
     a new directory inside the system include directory, such as 
     <TT
CLASS="filename"
>/usr/local/imap-2000b/</TT
> (location and name
     depend on your setup and IMAP version), and inside this new 
     directory create additional directories named <TT
CLASS="filename"
>lib/</TT
> 
     and <TT
CLASS="filename"
>include/</TT
>.  From the <TT
CLASS="filename"
>c-client</TT
> 
     directory from your IMAP source tree, copy all the <TT
CLASS="filename"
>*.h</TT
> 
     files into <TT
CLASS="filename"
>include/</TT
> and all the 
     <TT
CLASS="filename"
>*.c</TT
> files into <TT
CLASS="filename"
>lib/</TT
>.  
     Additionally when you compiled IMAP, a file named
     <TT
CLASS="filename"
>c-client.a</TT
> was created.  Also put this in the 
     <TT
CLASS="filename"
>lib/</TT
> directory but rename it as
     <TT
CLASS="filename"
>libc-client.a</TT
>.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      To build the c-client library with SSL or/and Kerberos support read
      the docs supplied with the package.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      In Mandrake Linux, the IMAP library (<TT
CLASS="filename"
>libc-client.a</TT
>)
      is compiled without Kerberos support. A separate version with SSL
      (<TT
CLASS="filename"
>client-PHP4.a</TT
>) is installed. The library must
      be recompiled in order to add Kerberos support.
     </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.installation"
>安装</A
></H1
><P
>&#13;  To get these functions to work, you have to compile PHP with
  <CODE
CLASS="option"
>--with-imap[=DIR]</CODE
>, where DIR is the
  c-client install prefix.  From our example above, you would use 
  <CODE
CLASS="option"
>--with-imap=/usr/local/imap-2000b</CODE
>.
  This location depends on where you created this directory according to the
  description above.  Windows users may include the 
  <TT
CLASS="filename"
>php_imap.dll</TT
> DLL in <TT
CLASS="filename"
>php.ini</TT
>.
  IMAP is not supported on systems earlier that Windows 2000. This is because it
  uses encryption functions in order to enable SSL connections to the mail
  servers.
 </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
   Depending how the c-client was configured, you might also need to add
   <CODE
CLASS="option"
>--with-imap-ssl=/path/to/openssl/</CODE
>
   and/or <CODE
CLASS="option"
>--with-kerberos=/path/to/kerberos</CODE
>
   into the PHP configure line.
  </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>警告</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
><A
HREF="ref.imap.html"
>IMAP</A
>,<A
HREF="ref.recode.html"
>recode</A
>,<A
HREF="ref.yaz.html"
>YAZ</A
> 和 <A
HREF="ref.cyrus.html"
>Cyrus</A
>
扩展模块不能同时使用,因为它们共享了相同的内部符号。</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.configuration"
>运行时配置</A
></H1
><P
>本扩展模块在 <TT
CLASS="filename"
>php.ini</TT
> 中未定义任何配置选项。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.resources"
>资源类型</A
></H1
><P
>&#13;    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>NIL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_DEBUG</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_READONLY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Open mailbox read-only
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_ANONYMOUS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Don't use or update a <TT
CLASS="filename"
>.newsrc</TT
> for news 
     (NNTP only)
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_SHORTCACHE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_SILENT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_PROTOTYPE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_HALFOPEN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     For IMAP and NNTP names, open a connection but don't open a mailbox.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_EXPUNGE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>OP_SECURE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CL_EXPUNGE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     silently expunge the mailbox before closing when
     calling <A
HREF="function.imap-close.html"
><B
CLASS="function"
>imap_close()</B
></A
>
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FT_UID</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     The parameter is a UID
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FT_PEEK</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Do not set the \Seen flag if not already set
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FT_NOT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FT_INTERNAL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     The return string is in internal format, will not canonicalize to CRLF.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>FT_PREFETCHTEXT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ST_UID</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     The sequence argument contains UIDs instead of sequence numbers
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ST_SILENT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ST_SET</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_UID</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     the sequence numbers contain UIDS
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_MOVE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Delete the messages from the current mailbox after copying
     with <A
HREF="function.imap-mail-copy.html"
><B
CLASS="function"
>imap_mail_copy()</B
></A
>
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SE_UID</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Return UIDs instead of sequence numbers
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SE_FREE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SE_NOPREFETCH</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Don't prefetch searched messages
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SO_FREE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SO_NOSERVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_MESSAGES</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_RECENT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_UNSEEN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_UIDNEXT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_UIDVALIDITY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SA_ALL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>LATT_NOINFERIORS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     This mailbox has no "children" (there are no
     mailboxes below this one).
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>LATT_NOSELECT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     This is only a container, not a mailbox - you
     cannot open it.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>LATT_MARKED</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     This mailbox is marked. Only used by UW-IMAPD.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>LATT_UNMARKED</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     This mailbox is not marked. Only used by
     UW-IMAPD.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTDATE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     message Date
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTARRIVAL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     arrival date
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTFROM</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     mailbox in first From address
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTSUBJECT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     message subject
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTTO</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     mailbox in first To address
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTCC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     mailbox in first cc address
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SORTSIZE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Sort criteria for <A
HREF="function.imap-sort.html"
><B
CLASS="function"
>imap_sort()</B
></A
>:
     size of message in octets
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPETEXT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEMULTIPART</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEMESSAGE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEAPPLICATION</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEAUDIO</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEIMAGE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEVIDEO</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>TYPEOTHER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENC7BIT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENC8BIT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENCBINARY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENCBASE64</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENCQUOTEDPRINTABLE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENCOTHER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="imap.seealso"
>参见</A
></H1
><P
>&#13;     This document can't go into detail on all the topics touched by
     the provided functions. Further information is provided by the
     documentation of the c-client library source
     (<TT
CLASS="filename"
>docs/internal.txt</TT
>). and the following RFC
     documents:
     <P
></P
><UL
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc2821"
TARGET="_top"
>RFC2821</A
>: Simple Mail
        Transfer Protocol (SMTP).
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc2822"
TARGET="_top"
>RFC2822</A
>: Standard for
        ARPA internet text messages.
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc2060"
TARGET="_top"
>RFC2060</A
>: Internet
        Message Access Protocol (IMAP) Version 4rev1. 
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc1939"
TARGET="_top"
>RFC1939</A
>:  Post
        Office Protocol Version 3 (POP3).
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc977"
TARGET="_top"
>RFC977</A
>: Network News
        Transfer Protocol (NNTP).
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc2076"
TARGET="_top"
>RFC2076</A
>: Common
        Internet Message Headers.
       </P
></LI
><LI
><P
>&#13;        <A
HREF="http://www.faqs.org/rfcs/rfc2045"
TARGET="_top"
>RFC2045</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2046"
TARGET="_top"
>RFC2046</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2047"
TARGET="_top"
>RFC2047</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2048"
TARGET="_top"
>RFC2048</A
> &#38; <A
HREF="http://www.faqs.org/rfcs/rfc2049"
TARGET="_top"
>RFC2049</A
>: Multipurpose
        Internet Mail Extensions (MIME).
       </P
></LI
></UL
> 
     A detailed overview is also available in the books
     <A
HREF="http://www.oreilly.com/catalog/progintemail/noframes.html"
TARGET="_top"
>Programming Internet Email</A
>
     by David Wood and  <A
HREF="http://www.oreilly.com/catalog/mimap/noframes.html"
TARGET="_top"
>Managing
     IMAP</A
> by Dianna Mullet &#38; Kevin Mullet.
    </P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.imap-8bit.html"
>imap_8bit</A
>&nbsp;--&nbsp;Convert an 8bit string to a quoted-printable string</DT
><DT
><A
HREF="function.imap-alerts.html"
>imap_alerts</A
>&nbsp;--&nbsp;Returns all IMAP alert messages that have occurred</DT
><DT
><A
HREF="function.imap-append.html"
>imap_append</A
>&nbsp;--&nbsp;Append a string message to a specified mailbox</DT
><DT
><A
HREF="function.imap-base64.html"
>imap_base64</A
>&nbsp;--&nbsp;Decode BASE64 encoded text</DT
><DT
><A
HREF="function.imap-binary.html"
>imap_binary</A
>&nbsp;--&nbsp;Convert an 8bit string to a base64 string</DT
><DT
><A
HREF="function.imap-body.html"
>imap_body</A
>&nbsp;--&nbsp;Read the message body</DT
><DT
><A
HREF="function.imap-bodystruct.html"
>imap_bodystruct</A
>&nbsp;--&nbsp;Read the structure of a specified body section of a specific message</DT
><DT
><A
HREF="function.imap-check.html"
>imap_check</A
>&nbsp;--&nbsp;Check current mailbox</DT
><DT
><A
HREF="function.imap-clearflag-full.html"
>imap_clearflag_full</A
>&nbsp;--&nbsp;Clears flags on messages</DT
><DT
><A
HREF="function.imap-close.html"
>imap_close</A
>&nbsp;--&nbsp;Close an IMAP stream</DT
><DT
><A
HREF="function.imap-createmailbox.html"
>imap_createmailbox</A
>&nbsp;--&nbsp;Create a new mailbox</DT
><DT
><A
HREF="function.imap-delete.html"
>imap_delete</A
>&nbsp;--&nbsp;Mark a message for deletion from current mailbox</DT
><DT
><A
HREF="function.imap-deletemailbox.html"
>imap_deletemailbox</A
>&nbsp;--&nbsp;Delete a mailbox</DT
><DT
><A
HREF="function.imap-errors.html"
>imap_errors</A
>&nbsp;--&nbsp;Returns all of the IMAP errors that have occured</DT
><DT
><A
HREF="function.imap-expunge.html"
>imap_expunge</A
>&nbsp;--&nbsp;Delete all messages marked for deletion</DT
><DT
><A
HREF="function.imap-fetch-overview.html"
>imap_fetch_overview</A
>&nbsp;--&nbsp;Read an overview of the information in the headers of the given message</DT
><DT
><A
HREF="function.imap-fetchbody.html"
>imap_fetchbody</A
>&nbsp;--&nbsp;Fetch a particular section of the body of the message</DT
><DT
><A
HREF="function.imap-fetchheader.html"
>imap_fetchheader</A
>&nbsp;--&nbsp;Returns header for a message</DT
><DT
><A
HREF="function.imap-fetchstructure.html"
>imap_fetchstructure</A
>&nbsp;--&nbsp;Read the structure of a particular message</DT
><DT
><A
HREF="function.imap-get-quota.html"
>imap_get_quota</A
>&nbsp;--&nbsp;Retrieve the quota level settings, and usage statics per mailbox</DT
><DT
><A
HREF="function.imap-get-quotaroot.html"
>imap_get_quotaroot</A
>&nbsp;--&nbsp;Retrieve the quota settings per user</DT
><DT
><A
HREF="function.imap-getacl.html"
>imap_getacl</A
>&nbsp;--&nbsp;Gets the ACL for a given mailbox</DT
><DT
><A
HREF="function.imap-getmailboxes.html"
>imap_getmailboxes</A
>&nbsp;--&nbsp;Read the list of mailboxes, returning detailed information on each one</DT
><DT
><A
HREF="function.imap-getsubscribed.html"
>imap_getsubscribed</A
>&nbsp;--&nbsp;List all the subscribed mailboxes</DT
><DT
><A
HREF="function.imap-header.html"
>imap_header</A
>&nbsp;--&nbsp;别名 <A
HREF="function.imap-headerinfo.html"
><B
CLASS="function"
>imap_headerinfo()</B
></A
></DT
><DT
><A
HREF="function.imap-headerinfo.html"
>imap_headerinfo</A
>&nbsp;--&nbsp;Read the header of the message</DT
><DT
><A
HREF="function.imap-headers.html"
>imap_headers</A
>&nbsp;--&nbsp;Returns headers for all messages in a mailbox</DT
><DT
><A
HREF="function.imap-last-error.html"
>imap_last_error</A
>&nbsp;--&nbsp;Gets the last IMAP error that occurred during this page request</DT
><DT
><A
HREF="function.imap-list.html"
>imap_list</A
>&nbsp;--&nbsp;Read the list of mailboxes</DT
><DT
><A
HREF="function.imap-listmailbox.html"
>imap_listmailbox</A
>&nbsp;--&nbsp;别名 <A
HREF="function.imap-list.html"
><B
CLASS="function"
>imap_list()</B
></A
></DT
><DT
><A
HREF="function.imap-listscan.html"
>imap_listscan</A
>&nbsp;--&nbsp;Returns the list of mailboxes that matches the given text</DT
><DT
><A
HREF="function.imap-listsubscribed.html"
>imap_listsubscribed</A
>&nbsp;--&nbsp;别名 <A
HREF="function.imap-lsub.html"
><B
CLASS="function"
>imap_lsub()</B
></A
></DT
><DT
><A
HREF="function.imap-lsub.html"
>imap_lsub</A
>&nbsp;--&nbsp;List all the subscribed mailboxes</DT
><DT
><A
HREF="function.imap-mail-compose.html"
>imap_mail_compose</A
>&nbsp;--&nbsp;Create a MIME message based on given envelope and body sections</DT
><DT
><A
HREF="function.imap-mail-copy.html"
>imap_mail_copy</A
>&nbsp;--&nbsp;Copy specified messages to a mailbox</DT
><DT
><A
HREF="function.imap-mail-move.html"
>imap_mail_move</A
>&nbsp;--&nbsp;Move specified messages to a mailbox</DT
><DT
><A
HREF="function.imap-mail.html"
>imap_mail</A
>&nbsp;--&nbsp;Send an email message</DT
><DT
><A
HREF="function.imap-mailboxmsginfo.html"
>imap_mailboxmsginfo</A
>&nbsp;--&nbsp;Get information about the current mailbox</DT
><DT
><A
HREF="function.imap-mime-header-decode.html"
>imap_mime_header_decode</A
>&nbsp;--&nbsp;Decode MIME header elements</DT
><DT
><A
HREF="function.imap-msgno.html"
>imap_msgno</A
>&nbsp;--&nbsp;Gets the message sequence number for the given UID</DT
><DT
><A
HREF="function.imap-num-msg.html"
>imap_num_msg</A
>&nbsp;--&nbsp;Gets the number of messages in the current mailbox</DT
><DT
><A
HREF="function.imap-num-recent.html"
>imap_num_recent</A
>&nbsp;--&nbsp;Gets the number of recent messages in current mailbox</DT
><DT
><A
HREF="function.imap-open.html"
>imap_open</A
>&nbsp;--&nbsp;Open an IMAP stream to a mailbox</DT
><DT
><A
HREF="function.imap-ping.html"
>imap_ping</A
>&nbsp;--&nbsp;Check if the IMAP stream is still active</DT
><DT
><A
HREF="function.imap-qprint.html"
>imap_qprint</A
>&nbsp;--&nbsp;Convert a quoted-printable string to an 8 bit string</DT
><DT
><A
HREF="function.imap-renamemailbox.html"
>imap_renamemailbox</A
>&nbsp;--&nbsp;Rename an old mailbox to new mailbox</DT
><DT
><A
HREF="function.imap-reopen.html"
>imap_reopen</A
>&nbsp;--&nbsp;Reopen IMAP stream to new mailbox</DT
><DT
><A
HREF="function.imap-rfc822-parse-adrlist.html"
>imap_rfc822_parse_adrlist</A
>&nbsp;--&nbsp;Parses an address string</DT
><DT
><A
HREF="function.imap-rfc822-parse-headers.html"
>imap_rfc822_parse_headers</A
>&nbsp;--&nbsp;Parse mail headers from a string</DT
><DT
><A
HREF="function.imap-rfc822-write-address.html"
>imap_rfc822_write_address</A
>&nbsp;--&nbsp;Returns a properly formatted email address given the mailbox, host, and personal info</DT
><DT
><A
HREF="function.imap-savebody.html"
>imap_savebody</A
>&nbsp;--&nbsp;Save a specific body section to a file</DT
><DT
><A
HREF="function.imap-scanmailbox.html"
>imap_scanmailbox</A
>&nbsp;--&nbsp;别名 <A
HREF="function.imap-listscan.html"
><B
CLASS="function"
>imap_listscan()</B
></A
></DT
><DT
><A
HREF="function.imap-search.html"
>imap_search</A
>&nbsp;--&nbsp;This function returns an array of messages matching the given search criteria</DT
><DT
><A
HREF="function.imap-set-quota.html"
>imap_set_quota</A
>&nbsp;--&nbsp;Sets a quota for a given mailbox</DT
><DT
><A
HREF="function.imap-setacl.html"
>imap_setacl</A
>&nbsp;--&nbsp;Sets the ACL for a giving mailbox</DT
><DT
><A
HREF="function.imap-setflag-full.html"
>imap_setflag_full</A
>&nbsp;--&nbsp;Sets flags on messages</DT
><DT
><A
HREF="function.imap-sort.html"
>imap_sort</A
>&nbsp;--&nbsp;Gets and sort messages</DT
><DT
><A
HREF="function.imap-status.html"
>imap_status</A
>&nbsp;--&nbsp;Returns status information on a mailbox</DT
><DT
><A
HREF="function.imap-subscribe.html"
>imap_subscribe</A
>&nbsp;--&nbsp;Subscribe to a mailbox</DT
><DT
><A
HREF="function.imap-thread.html"
>imap_thread</A
>&nbsp;--&nbsp;Returns a tree of threaded message</DT
><DT
><A
HREF="function.imap-timeout.html"
>imap_timeout</A
>&nbsp;--&nbsp;Set or fetch imap timeout</DT
><DT
><A
HREF="function.imap-uid.html"
>imap_uid</A
>&nbsp;--&nbsp;This function returns the UID for the given message sequence number</DT
><DT
><A
HREF="function.imap-undelete.html"
>imap_undelete</A
>&nbsp;--&nbsp;Unmark the message which is marked deleted</DT
><DT
><A
HREF="function.imap-unsubscribe.html"
>imap_unsubscribe</A
>&nbsp;--&nbsp;Unsubscribe from a mailbox</DT
><DT
><A
HREF="function.imap-utf7-decode.html"
>imap_utf7_decode</A
>&nbsp;--&nbsp;Decodes a modified UTF-7 encoded string</DT
><DT
><A
HREF="function.imap-utf7-encode.html"
>imap_utf7_encode</A
>&nbsp;--&nbsp;Converts ISO-8859-1 string to modified UTF-7 text</DT
><DT
><A
HREF="function.imap-utf8.html"
>imap_utf8</A
>&nbsp;--&nbsp;Converts MIME-encoded text to UTF-8</DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.imagick-zoom.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.imap-8bit.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>imagick_zoom</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>imap_8bit</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>