summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartikaya Gupta <kats@seldon.staktrace.com>2016-11-11 11:35:34 -0500
committerKartikaya Gupta <kats@seldon.staktrace.com>2016-11-11 11:35:34 -0500
commit26778c0038723311c64cc5ddcaaaf9dc81fa83c6 (patch)
tree09420f88707a05aab13e49cef0384222c8375ef4
parent1ef218867900171cd61d9e2f2fa2a56cc6e31f78 (diff)
Update documentation
-rw-r--r--target/doc/implementors/core/convert/trait.From.js2
-rw-r--r--target/doc/implementors/core/fmt/trait.Debug.js2
-rw-r--r--target/doc/implementors/core/fmt/trait.Display.js2
-rw-r--r--target/doc/implementors/mailparse/trait.MailHeaderMap.js2
-rw-r--r--target/doc/implementors/std/error/trait.Error.js2
-rw-r--r--target/doc/mailparse/fn.parse_content_type.html2
-rw-r--r--target/doc/mailparse/fn.parse_headers.html2
-rw-r--r--target/doc/mailparse/fn.parse_mail.html2
-rw-r--r--target/doc/mailparse/index.html2
-rw-r--r--target/doc/mailparse/struct.MailHeader.html2
-rw-r--r--target/doc/mailparse/struct.ParsedContentType.html2
-rw-r--r--target/doc/mailparse/struct.ParsedMail.html2
-rw-r--r--target/doc/mailparse/trait.MailHeaderMap.html15
-rw-r--r--target/doc/search-index.js2
-rw-r--r--target/doc/src/mailparse/src/lib.rs.html68
15 files changed, 23 insertions, 86 deletions
diff --git a/target/doc/implementors/core/convert/trait.From.js b/target/doc/implementors/core/convert/trait.From.js
index 6db984e..00678ce 100644
--- a/target/doc/implementors/core/convert/trait.From.js
+++ b/target/doc/implementors/core/convert/trait.From.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/core/fmt/trait.Debug.js b/target/doc/implementors/core/fmt/trait.Debug.js
index b14d3b3..2f270d1 100644
--- a/target/doc/implementors/core/fmt/trait.Debug.js
+++ b/target/doc/implementors/core/fmt/trait.Debug.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/core/fmt/trait.Display.js b/target/doc/implementors/core/fmt/trait.Display.js
index bb28343..ff2d722 100644
--- a/target/doc/implementors/core/fmt/trait.Display.js
+++ b/target/doc/implementors/core/fmt/trait.Display.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/mailparse/trait.MailHeaderMap.js b/target/doc/implementors/mailparse/trait.MailHeaderMap.js
index afa564b..7868a61 100644
--- a/target/doc/implementors/mailparse/trait.MailHeaderMap.js
+++ b/target/doc/implementors/mailparse/trait.MailHeaderMap.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = [];implementors['mailparse'] = [];
+implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/std/error/trait.Error.js b/target/doc/implementors/std/error/trait.Error.js
index ed55323..6563070 100644
--- a/target/doc/implementors/std/error/trait.Error.js
+++ b/target/doc/implementors/std/error/trait.Error.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/mailparse/fn.parse_content_type.html b/target/doc/mailparse/fn.parse_content_type.html
index e81fb02..08ef924 100644
--- a/target/doc/mailparse/fn.parse_content_type.html
+++ b/target/doc/mailparse/fn.parse_content_type.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-312' class='srclink' href='../src/mailparse/src/lib.rs.html#539-564' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-285' class='srclink' href='../src/mailparse/src/lib.rs.html#511-536' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_content_type(header: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='../mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>Helper method to parse a header value as a Content-Type header. The charset
defaults to &quot;us-ascii&quot; if no charset parameter is provided in the header
value.</p>
diff --git a/target/doc/mailparse/fn.parse_headers.html b/target/doc/mailparse/fn.parse_headers.html
index 9a86a17..c5e42be 100644
--- a/target/doc/mailparse/fn.parse_headers.html
+++ b/target/doc/mailparse/fn.parse_headers.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-292' class='srclink' href='../src/mailparse/src/lib.rs.html#474-497' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-265' class='srclink' href='../src/mailparse/src/lib.rs.html#446-469' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_headers(raw_data: <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>&amp;[</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.u8.html'>u8</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>]</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>(</a><a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&gt;, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.usize.html'>usize</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>)</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>Parses all the headers from the raw data given.
This function takes raw byte data, and starts parsing it, expecting there
to be zero or more MIME header key-value pair right at the beginning,
diff --git a/target/doc/mailparse/fn.parse_mail.html b/target/doc/mailparse/fn.parse_mail.html
index 509783e..95d75aa 100644
--- a/target/doc/mailparse/fn.parse_mail.html
+++ b/target/doc/mailparse/fn.parse_mail.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-358' class='srclink' href='../src/mailparse/src/lib.rs.html#662-704' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-331' class='srclink' href='../src/mailparse/src/lib.rs.html#634-676' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_mail(raw_data: <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>&amp;[</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.u8.html'>u8</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>]</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='../mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>The main mail-parsing entry point.
This function takes the raw data making up the message body and returns a
structured version of it, which allows easily accessing the header and body
diff --git a/target/doc/mailparse/index.html b/target/doc/mailparse/index.html
index 5b6e8a4..83af7c0 100644
--- a/target/doc/mailparse/index.html
+++ b/target/doc/mailparse/index.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-977' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-949' title='goto source code'>[src]</a></span></h1>
<h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
diff --git a/target/doc/mailparse/struct.MailHeader.html b/target/doc/mailparse/struct.MailHeader.html
index 0313162..0160a89 100644
--- a/target/doc/mailparse/struct.MailHeader.html
+++ b/target/doc/mailparse/struct.MailHeader.html
@@ -56,7 +56,7 @@ lifetime of this struct must be contained within the lifetime of the raw
input. There are additional accessor functions on this struct to extract
the data as Rust strings.</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><code>impl&lt;'a&gt; <a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;</code></h3><div class='impl-items'><h4 id='method.get_key' class='method'><code>fn <a href='#method.get_key' class='fnname'>get_key</a>(&amp;self) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h4>
-<div class='docblock'><p>Get the name of the header. Note that header names are case-sensitive.</p>
+<div class='docblock'><p>Get the name of the header. Note that header names are case-insensitive.</p>
</div><h4 id='method.get_value' class='method'><code>fn <a href='#method.get_value' class='fnname'>get_value</a>(&amp;self) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h4>
<div class='docblock'><p>Get the value of the header. Any sequences of newlines characters followed
by whitespace are collapsed into a single space. In effect, header values
diff --git a/target/doc/mailparse/struct.ParsedContentType.html b/target/doc/mailparse/struct.ParsedContentType.html
index d9e362b..8d4d189 100644
--- a/target/doc/mailparse/struct.ParsedContentType.html
+++ b/target/doc/mailparse/struct.ParsedContentType.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-300' class='srclink' href='../src/mailparse/src/lib.rs.html#503-514' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-273' class='srclink' href='../src/mailparse/src/lib.rs.html#475-486' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct ParsedContentType {
pub mimetype: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>,
pub charset: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>,
diff --git a/target/doc/mailparse/struct.ParsedMail.html b/target/doc/mailparse/struct.ParsedMail.html
index d298da8..5446417 100644
--- a/target/doc/mailparse/struct.ParsedMail.html
+++ b/target/doc/mailparse/struct.ParsedMail.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-320' class='srclink' href='../src/mailparse/src/lib.rs.html#571-581' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-293' class='srclink' href='../src/mailparse/src/lib.rs.html#543-553' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct ParsedMail&lt;'a&gt; {
pub headers: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;&gt;,
pub ctype: <a class='struct' href='../mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>,
diff --git a/target/doc/mailparse/trait.MailHeaderMap.html b/target/doc/mailparse/trait.MailHeaderMap.html
index 44ebe60..245b416 100644
--- a/target/doc/mailparse/trait.MailHeaderMap.html
+++ b/target/doc/mailparse/trait.MailHeaderMap.html
@@ -47,12 +47,10 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-233' class='srclink' href='../src/mailparse/src/lib.rs.html#364-407' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-233' class='srclink' href='../src/mailparse/src/lib.rs.html#364-398' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait MailHeaderMap {
fn <a href='#tymethod.get_first_value' class='fnname'>get_first_value</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/core/option/enum.Option.html' title='core::option::Option'>Option</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;;
- fn <a href='#tymethod.get_first_value_ci' class='fnname'>get_first_value_ci</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/core/option/enum.Option.html' title='core::option::Option'>Option</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;;
fn <a href='#tymethod.get_all_values' class='fnname'>get_all_values</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;;
- fn <a href='#tymethod.get_all_values_ci' class='fnname'>get_all_values_ci</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;;
}</pre><div class='docblock'><p>A trait that is implemented by the Vec<MailHeader> returned by the parse_headers
function. It provides a map-like interface to look up header values by their
name.</p>
@@ -61,7 +59,7 @@ name.</p>
<div class='methods'>
<h3 id='tymethod.get_first_value' class='method stab '><code>fn <a href='#tymethod.get_first_value' class='fnname'>get_first_value</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/core/option/enum.Option.html' title='core::option::Option'>Option</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h3><div class='docblock'><p>Look through the list of headers and return the value of the first one
that matches the provided key. It returns Ok(None) if the no matching
-header was found.</p>
+header was found. Header names are matched case-insensitively.</p>
<h1 id='examples' class='section-header'><a href='#examples'>Examples</a></h1>
<pre class='rust rust-example-rendered'>
@@ -72,13 +70,11 @@ header was found.</p>
<span class='string'>&quot;This is a test message&quot;</span>).<span class='ident'>as_bytes</span>())
.<span class='ident'>unwrap</span>().<span class='ident'>headers</span>;
<span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>headers</span>.<span class='ident'>get_first_value</span>(<span class='string'>&quot;Subject&quot;</span>).<span class='ident'>unwrap</span>(), <span class='prelude-val'>Some</span>(<span class='string'>&quot;Test&quot;</span>.<span class='ident'>to_string</span>()));</pre>
-</div><h3 id='tymethod.get_first_value_ci' class='method stab '><code>fn <a href='#tymethod.get_first_value_ci' class='fnname'>get_first_value_ci</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/core/option/enum.Option.html' title='core::option::Option'>Option</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h3><div class='docblock'><p>Same as get_first_value, but does a case-insensitive search for the header.
-According to the spec the mail headers are supposed to be case-sensitive,
-but in real-world scenarios that&#39;s not always the case.</p>
</div><h3 id='tymethod.get_all_values' class='method stab '><code>fn <a href='#tymethod.get_all_values' class='fnname'>get_all_values</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h3><div class='docblock'><p>Look through the list of headers and return the values of all headers
matching the provided key. Returns an empty vector if no matching headers
were found. The order of the returned values is the same as the order
-of the matching headers in the message.</p>
+of the matching headers in the message. Header names are matched
+case-insensitively.</p>
<h1 id='examples-1' class='section-header'><a href='#examples-1'>Examples</a></h1>
<pre class='rust rust-example-rendered'>
@@ -89,9 +85,6 @@ of the matching headers in the message.</p>
.<span class='ident'>unwrap</span>().<span class='ident'>headers</span>;
<span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>headers</span>.<span class='ident'>get_all_values</span>(<span class='string'>&quot;Key&quot;</span>).<span class='ident'>unwrap</span>(),
<span class='macro'>vec</span><span class='macro'>!</span>[<span class='string'>&quot;Value1&quot;</span>.<span class='ident'>to_string</span>(), <span class='string'>&quot;Value2&quot;</span>.<span class='ident'>to_string</span>()]);</pre>
-</div><h3 id='tymethod.get_all_values_ci' class='method stab '><code>fn <a href='#tymethod.get_all_values_ci' class='fnname'>get_all_values_ci</a>(&amp;self, key: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>&gt;, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</code></h3><div class='docblock'><p>Same as get_all_values, but does a case-insensitive search for the header.
-According to the spec the mail headers are supposed to be case-sensitive,
-but in real-world scenarios that&#39;s not always the case.</p>
</div></div>
<h2 id='implementors'>Implementors</h2>
<ul class='item-list' id='implementors-list'>
diff --git a/target/doc/search-index.js b/target/doc/search-index.js
index fdb4668..762ebe3 100644
--- a/target/doc/search-index.js
+++ b/target/doc/search-index.js
@@ -1,3 +1,3 @@
var searchIndex = {};
-searchIndex["mailparse"] = {"doc":"","items":[[3,"MailHeader","mailparse","A struct that represents a single header in the message.\nIt holds slices into the raw byte array passed to parse_mail, and so the\nlifetime of this struct must be contained within the lifetime of the raw\ninput. There are additional accessor functions on this struct to extract\nthe data as Rust strings.",null,null],[3,"ParsedContentType","","A struct to hold a more structured representation of the Content-Type header.\nThis is provided mostly as a convenience since this metadata is usually\nneeded to interpret the message body properly.",null,null],[12,"mimetype","","The type of the data, for example &quot;text/plain&quot; or &quot;application/pdf&quot;.",0,null],[12,"charset","","The charset used to decode the raw byte data, for example &quot;iso-8859-1&quot;\nor &quot;utf-8&quot;.",0,null],[12,"boundary","","The boundary used to separate the different parts of a multipart message.\nThis boundary is taken straight from the Content-Type header, and so\nthe body will actually contain the boundary string prefixed by two\ndashes.",0,null],[3,"ParsedMail","","Struct that holds the structured representation of the message. Note that\nsince MIME allows for nested multipart messages, a tree-like structure is\nnecessary to represent it properly. This struct accomplishes that by holding\na vector of other ParsedMail structures for the subparts.",null,null],[12,"headers","","The headers for the message (or message subpart).",1,null],[12,"ctype","","The Content-Type information for the message (or message subpart).",1,null],[12,"subparts","","The subparts of this message or subpart. This vector is only non-empty\nif ctype.mimetype starts with &quot;multipart/&quot;.",1,null],[4,"MailParseError","","An error type that represents the different kinds of errors that may be\nencountered during message parsing.",null,null],[13,"QuotedPrintableDecodeError","","Data that was specified as being in the quoted-printable transfer-encoding\ncould not be successfully decoded as quoted-printable data.",2,null],[13,"Base64DecodeError","","Data that was specified as being in the base64 transfer-encoding could\nnot be successfully decoded as base64 data.",2,null],[13,"EncodingError","","An error occurred when converting the raw byte data to Rust UTF-8 string\nformat using the charset specified in the message.",2,null],[13,"Generic","","Some other error occurred while parsing the message; the description string\nprovides additional details.",2,null],[5,"dateparse","","Convert a date field from an email header into a UNIX epoch timestamp.\nThis function handles the most common formatting of date fields found in\nemail headers. It may fail to parse some of the more creative formattings.",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"parse_header","","Parse a single header from the raw data given.\nThis function takes raw byte data, and starts parsing it, expecting there\nto be a MIME header key-value pair right at the beginning. It parses that\nheader and returns it, along with the index at which the next header is\nexpected to start. If you just want to parse a single header, you can ignore\nthe second component of the tuple, which is the index of the next header.\nError values are returned if the data could not be successfully interpreted\nas a MIME key-value pair.",null,null],[5,"parse_headers","","Parses all the headers from the raw data given.\nThis function takes raw byte data, and starts parsing it, expecting there\nto be zero or more MIME header key-value pair right at the beginning,\nfollowed by two consecutive newlines (i.e. a blank line). It parses those\nheaders and returns them in a vector. The normal vector functions can be\nused to access the headers linearly, or the MailHeaderMap trait can be used\nto access them in a map-like fashion. Along with this vector, the function\nreturns the index at which the message body is expected to start. If you\njust care about the headers, you can ignore the second component of the\nreturned tuple.\nError values are returned if there was some sort of parsing error.",null,null],[5,"parse_content_type","","Helper method to parse a header value as a Content-Type header. The charset\ndefaults to &quot;us-ascii&quot; if no charset parameter is provided in the header\nvalue.",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"parse_mail","","The main mail-parsing entry point.\nThis function takes the raw data making up the message body and returns a\nstructured version of it, which allows easily accessing the header and body\ninformation as needed.",null,null],[8,"MailHeaderMap","","A trait that is implemented by the Vec&lt;MailHeader&gt; returned by the parse_headers\nfunction. It provides a map-like interface to look up header values by their\nname.",null,null],[10,"get_first_value","","Look through the list of headers and return the value of the first one\nthat matches the provided key. It returns Ok(None) if the no matching\nheader was found.",3,{"inputs":[{"name":"mailheadermap"},{"name":"str"}],"output":{"name":"result"}}],[10,"get_first_value_ci","","Same as get_first_value, but does a case-insensitive search for the header.\nAccording to the spec the mail headers are supposed to be case-sensitive,\nbut in real-world scenarios that&#39;s not always the case.",3,{"inputs":[{"name":"mailheadermap"},{"name":"str"}],"output":{"name":"result"}}],[10,"get_all_values","","Look through the list of headers and return the values of all hea