uTools-Manuals/docs/php/mailparse_msg_parse_file.html
2019-04-28 19:00:34 +08:00

72 lines
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Parses a file</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.mailparse-msg-parse-file" class="refentry">
<div class="refnamediv">
<h1 class="refname">mailparse_msg_parse_file</h1>
<p class="verinfo">(PECL mailparse &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">mailparse_msg_parse_file</span> &mdash; <span class="dc-title">Parses a file</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.mailparse-msg-parse-file-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>mailparse_msg_parse_file</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
) : <span class="type">resource</span></div>
<p class="para rdfs-comment">
Parses a file.
This is the optimal way of parsing a mail file that you have on disk.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.mailparse-msg-parse-file-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">filename</code></dt>
<dd>
<p class="para">
Path to the file holding the message.
The file is opened and streamed through the parser.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.mailparse-msg-parse-file-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns a <em>MIME</em> resource representing the structure, or
<strong><code>FALSE</code></strong> on error.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.mailparse-msg-parse-file-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="mailparse_msg_free.html" class="function" rel="rdfs-seeAlso">mailparse_msg_free()</a> - Frees a MIME resource</span></li>
<li class="member"><span class="function"><a href="mailparse_msg_create.html" class="function" rel="rdfs-seeAlso">mailparse_msg_create()</a> - Create a mime mail resource</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>