<!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="Manual do 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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.imap-header.html" ACCESSKEY="P" >Anterior</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" >Próxima</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="AEN93208" ></A ><P > (PHP 3, PHP 4, PHP 5)</P >imap_headerinfo -- Read the header of the message</DIV ><DIV CLASS="refsect1" ><A NAME="AEN93211" ></A ><H2 >Descrição</H2 >object <B CLASS="methodname" >imap_headerinfo</B > ( resource imap_stream, int msg_number [, int fromlength [, int subjectlength [, string defaulthost]]] )<BR ></BR ><P > Gets information about the given message number by reading its headers. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN93232" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" > imap_stream</CODE ></DT ><DD ><P >Um stream IMAP retornado por <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 > The message number </P ></DD ><DT ><CODE CLASS="parameter" >fromlength</CODE ></DT ><DD ><P > 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 > 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 > </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN93264" ></A ><H2 >Valores de retornado</H2 ><P > Returns the information in an object with following properties: <P ></P ><UL ><LI ><P > toaddress - full to: line, up to 1024 characters </P ></LI ><LI ><P > 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 > fromaddress - full from: line, up to 1024 characters </P ></LI ><LI ><P > 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 > ccaddress - full cc: line, up to 1024 characters </P ></LI ><LI ><P > 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 > bccaddress - full bcc: line, up to 1024 characters </P ></LI ><LI ><P > 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 > reply_toaddress - full Reply-To: line, up to 1024 characters </P ></LI ><LI ><P > 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 > senderaddress - full sender: line, up to 1024 characters </P ></LI ><LI ><P > 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 > return_pathaddress - full Return-Path: line, up to 1024 characters </P ></LI ><LI ><P > 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 > remail - </P ></LI ><LI ><P > date - The message date as found in its headers </P ></LI ><LI ><P > Date - Same as date </P ></LI ><LI ><P > subject - The message subject </P ></LI ><LI ><P > Subject - Same a subject </P ></LI ><LI ><P > in_reply_to - </P ></LI ><LI ><P > message_id - </P ></LI ><LI ><P > newsgroups - </P ></LI ><LI ><P > followup_to - </P ></LI ><LI ><P > references - </P ></LI ><LI ><P > 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 > Unseen - <TT CLASS="literal" >U</TT > if not seen AND not recent, ' ' if seen OR not seen and recent </P ></LI ><LI ><P > Flagged - <TT CLASS="literal" >F</TT > if flagged, ' ' if not flagged </P ></LI ><LI ><P > Answered - <TT CLASS="literal" >A</TT > if answered, ' ' if unanswered </P ></LI ><LI ><P > Deleted - <TT CLASS="literal" >D</TT > if deleted, ' ' if not deleted </P ></LI ><LI ><P > Draft - <TT CLASS="literal" >X</TT > if draft, ' ' if not draft </P ></LI ><LI ><P > Msgno - The message number </P ></LI ><LI ><P > MailDate - </P ></LI ><LI ><P > Size - The message size </P ></LI ><LI ><P > udate - mail message date in Unix time </P ></LI ><LI ><P > fetchfrom - from line formatted to fit <CODE CLASS="parameter" >fromlength</CODE > characters </P ></LI ><LI ><P > fetchsubject - subject line formatted to fit <CODE CLASS="parameter" >subjectlength</CODE > characters </P ></LI ></UL > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN93377" ></A ><H2 >Veja também</H2 ><P > <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" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.imap-headers.html" ACCESSKEY="N" >Próxima</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" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >imap_headers</TD ></TR ></TABLE ></DIV ></BODY ></HTML >