Sophie

Sophie

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

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_headerinfo</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="IMAP, POP3 and NNTP Functions"
HREF="ref.imap.html"><LINK
REL="PREVIOUS"
TITLE="imap_header"
HREF="function.imap-header.html"><LINK
REL="NEXT"
TITLE="imap_headers"
HREF="function.imap-headers.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.imap-header.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.imap-headers.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.imap-headerinfo"
></A
>imap_headerinfo</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN96727"
></A
><P
>    (PHP 3, PHP 4, PHP 5)</P
>imap_headerinfo&nbsp;--&nbsp;Read the header of the message</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96730"
></A
><H2
>说明</H2
>object <B
CLASS="methodname"
>imap_headerinfo</B
> ( resource imap_stream, int msg_number [, int fromlength [, int subjectlength [, string defaulthost]]] )<BR
></BR
><P
>&#13;   Gets information about the given message number by reading its headers.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96751"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>&#13;imap_stream</CODE
></DT
><DD
><P
>An IMAP stream returned by 
<A
HREF="function.imap-open.html"
><B
CLASS="function"
>imap_open()</B
></A
>.</P
></DD
><DT
><CODE
CLASS="parameter"
>msg_number</CODE
></DT
><DD
><P
>&#13;       The message number
      </P
></DD
><DT
><CODE
CLASS="parameter"
>fromlength</CODE
></DT
><DD
><P
>&#13;       Number of characters for the <TT
CLASS="literal"
>fetchfrom</TT
> property.
       Must be greater than or equal to zero.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>subjectlength</CODE
></DT
><DD
><P
>&#13;       Number of characters for the <TT
CLASS="literal"
>fetchsubject</TT
> property
       Must be greater than or equal to zero.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>defaulthost</CODE
></DT
><DD
><P
>&#13;      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96783"
></A
><H2
>返回值</H2
><P
>&#13;   Returns the information in an object with following properties:
   <P
></P
><UL
><LI
><P
>&#13;      toaddress - full to: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      to - an array of objects from the To: line, with the following 
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      fromaddress - full from: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      from - an array of objects from the From: line, with the following 
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      ccaddress - full cc: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      cc - an array of objects from the Cc: line, with the following 
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      bccaddress - full bcc: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      bcc - an array of objects from the Bcc: line, with the following 
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      reply_toaddress - full Reply-To: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      reply_to - an array of objects from the Reply-To: line, with the following
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      senderaddress - full sender: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      sender - an array of objects from the Sender: line, with the following 
      properties: <TT
CLASS="literal"
>personal</TT
>, <TT
CLASS="literal"
>adl</TT
>,
      <TT
CLASS="literal"
>mailbox</TT
>, and <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      return_pathaddress - full Return-Path: line, up to 1024 characters
     </P
></LI
><LI
><P
>&#13;      return_path - an array of objects from the Return-Path: line, with the
      following properties: <TT
CLASS="literal"
>personal</TT
>, 
      <TT
CLASS="literal"
>adl</TT
>, <TT
CLASS="literal"
>mailbox</TT
>, and 
      <TT
CLASS="literal"
>host</TT
>
     </P
></LI
><LI
><P
>&#13;      remail - 
     </P
></LI
><LI
><P
>&#13;      date - The message date as found in its headers
     </P
></LI
><LI
><P
>&#13;      Date - Same as date
     </P
></LI
><LI
><P
>&#13;      subject - The message subject
     </P
></LI
><LI
><P
>&#13;      Subject - Same a subject 
     </P
></LI
><LI
><P
>&#13;      in_reply_to - 
     </P
></LI
><LI
><P
>&#13;      message_id - 
     </P
></LI
><LI
><P
>&#13;      newsgroups - 
     </P
></LI
><LI
><P
>&#13;      followup_to - 
     </P
></LI
><LI
><P
>&#13;      references - 
     </P
></LI
><LI
><P
>&#13;      Recent - <TT
CLASS="literal"
>R</TT
> if recent and seen, <TT
CLASS="literal"
>N</TT
>
      if recent and not seen, ' ' if not recent.
     </P
></LI
><LI
><P
>&#13;      Unseen - <TT
CLASS="literal"
>U</TT
> if not seen AND not recent, ' ' if seen
      OR not seen and recent
     </P
></LI
><LI
><P
>&#13;      Flagged - <TT
CLASS="literal"
>F</TT
> if flagged, ' ' if not flagged
     </P
></LI
><LI
><P
>&#13;      Answered - <TT
CLASS="literal"
>A</TT
> if answered, ' ' if unanswered
     </P
></LI
><LI
><P
>&#13;      Deleted - <TT
CLASS="literal"
>D</TT
> if deleted, ' ' if not deleted
     </P
></LI
><LI
><P
>&#13;      Draft - <TT
CLASS="literal"
>X</TT
> if draft, ' ' if not draft
     </P
></LI
><LI
><P
>&#13;      Msgno - The message number
     </P
></LI
><LI
><P
>&#13;      MailDate - 
     </P
></LI
><LI
><P
>&#13;      Size - The message size
     </P
></LI
><LI
><P
>&#13;      udate - mail message date in Unix time
     </P
></LI
><LI
><P
>&#13;      fetchfrom - from line formatted to fit <CODE
CLASS="parameter"
>fromlength</CODE
>
      characters
     </P
></LI
><LI
><P
>&#13;      fetchsubject - subject line formatted to fit 
      <CODE
CLASS="parameter"
>subjectlength</CODE
> characters
     </P
></LI
></UL
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96896"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.imap-fetch-overview.html"
><B
CLASS="function"
>imap_fetch_overview()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></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.imap-header.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-headers.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>imap_header</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.imap.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>imap_headers</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>