<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Mailparse Functions</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="Referência das Funções" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="mail" HREF="function.mail.html"><LINK REL="NEXT" TITLE="mailparse_determine_best_xfer_encoding" HREF="function.mailparse-determine-best-xfer-encoding.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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.mail.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.mailparse-determine-best-xfer-encoding.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.mailparse" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXX. Mailparse Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN103565" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="mailparse.intro" >Introdução</A ></H1 ><P > Mailparse is an extension for parsing and working with email messages. It can deal with <A HREF="http://www.faqs.org/rfcs/rfc822" TARGET="_top" >RFC 822</A > and <A HREF="http://www.faqs.org/rfcs/rfc2045" TARGET="_top" >RFC 2045</A > (<TT CLASS="literal" >MIME</TT >) compliant messages. </P ><P > Mailparse is stream based, which means that it does not keep in-memory copies of the files it processes - so it is very resource efficient when dealing with large messages. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B > Mailparse requires the <A HREF="ref.mbstring.html" >mbstring</A > extension. </P ></BLOCKQUOTE ></DIV ><P > Esta extensão foi movida para o repositório <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > e não é mais distribuida em conjunto com o PHP a partir do PHP 4.2.0. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="mailparse.installation" >Instalação</A ></H1 ><P > Esta estensão <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > não vem compilada com o PHP. Informações para a instalação desta extensão PECL podem ser encontradas no manual no capitulo entitulado <A HREF="install.pecl.html" >Instalação de extensões PECL</A >. Informações adicionais como novas versões, downloads, arquivos fontes, manutenções, e um Changelog, podem ser obtidos aqui: <A HREF="http://pecl.php.net/package/mailparse" TARGET="_top" >http://pecl.php.net/package/mailparse</A >. </P ><P > In order to use these functions you must compile PHP with mailparse support by using the <CODE CLASS="option" >--enable-mailparse</CODE > configure option. </P ><P > Windows users will enable <TT CLASS="filename" >php_mailparse.dll</TT > inside of <TT CLASS="filename" >php.ini</TT > in order to use these functions. Você pode baixar esta extensão <ACRONYM CLASS="acronym" >PECL</ACRONYM > <ACRONYM CLASS="acronym" >DLL</ACRONYM > a apartir de <A HREF="http://www.php.net/downloads.php" TARGET="_top" > downloads PHP</A > ou em <A HREF="http://snaps.php.net/" TARGET="_top" > http://snaps.php.net/</A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="mailparse.configuration" >Configurações em execução</A ></H1 ><P > O comportamento dessas funções podem ser modificado pelas configurações do <TT CLASS="filename" >php.ini</TT >. </P ><P > <DIV CLASS="table" ><A NAME="AEN103598" ></A ><P ><B >Tabela 1. Mailparse configuration options</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Default</TH ><TH >Changeable</TH ><TH >Changelog</TH ></TR ></THEAD ><TBODY ><TR ><TD >mailparse.def_charset</TD ><TD >"us-ascii"</TD ><TD >PHP_INI_ALL</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > Para mais detalhes e definições das constantes PHP_INI_*, veja <A HREF="ini.html" >Apêndice H</A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="mailparse.constants" >Constantes pré-definidas</A ></H1 ><P > As contantes abaixo são definidas por esta extensão e somente estarão disponíveis quando a extensão foi compilada com o PHP ou carregada dinamicamente durante a execução. </P ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><TT CLASS="constant" ><B >MAILPARSE_EXTRACT_OUTPUT</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >MAILPARSE_EXTRACT_STREAM</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >MAILPARSE_EXTRACT_RETURN</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Índice</B ></DT ><DT ><A HREF="function.mailparse-determine-best-xfer-encoding.html" >mailparse_determine_best_xfer_encoding</A > -- Gets the best way of encoding</DT ><DT ><A HREF="function.mailparse-msg-create.html" >mailparse_msg_create</A > -- Create a mime mail resource</DT ><DT ><A HREF="function.mailparse-msg-extract-part-file.html" >mailparse_msg_extract_part_file</A > -- Extracts/decodes a message section</DT ><DT ><A HREF="function.mailparse-msg-extract-part.html" >mailparse_msg_extract_part</A > -- Extracts/decodes a message section </DT ><DT ><A HREF="function.mailparse-msg-extract-whole-part-file.html" >mailparse_msg_extract_whole_part_file</A > -- Extracts a message section including headers without decoding the transfer encoding</DT ><DT ><A HREF="function.mailparse-msg-free.html" >mailparse_msg_free</A > -- Frees a MIME resource</DT ><DT ><A HREF="function.mailparse-msg-get-part-data.html" >mailparse_msg_get_part_data</A > -- Returns an associative array of info about the message</DT ><DT ><A HREF="function.mailparse-msg-get-part.html" >mailparse_msg_get_part</A > -- Returns a handle on a given section in a mimemessage</DT ><DT ><A HREF="function.mailparse-msg-get-structure.html" >mailparse_msg_get_structure</A > -- Returns an array of mime section names in the supplied message</DT ><DT ><A HREF="function.mailparse-msg-parse-file.html" >mailparse_msg_parse_file</A > -- Parses a file</DT ><DT ><A HREF="function.mailparse-msg-parse.html" >mailparse_msg_parse</A > -- Incrementally parse data into buffer</DT ><DT ><A HREF="function.mailparse-rfc822-parse-addresses.html" >mailparse_rfc822_parse_addresses</A > -- Parse RFC 822 compliant addresses</DT ><DT ><A HREF="function.mailparse-stream-encode.html" >mailparse_stream_encode</A > -- Streams data from source file pointer, apply encoding and write to destfp </DT ><DT ><A HREF="function.mailparse-uudecode-all.html" >mailparse_uudecode_all</A > -- Scans the data from fp and extract each embedded uuencoded file </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.mail.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.mailparse-determine-best-xfer-encoding.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >mail</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >mailparse_determine_best_xfer_encoding</TD ></TR ></TABLE ></DIV ></BODY ></HTML >