drop mailparse from the public docs

This commit is contained in:
2026-10-10 23:09:24 +02:00
parent f6e5009a5f
commit d47e814b4b
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ pub(crate) fn build_headers<'a, H: Header<'a>>(
///
/// # Errors
///
/// [`CowMailError::Parse`] when [`mailparse::parse_headers`] rejects the block.
/// [`CowMailError::Parse`] when the block is malformed.
///
/// # Examples
///
+2 -2
View File
@@ -191,7 +191,7 @@ pub trait Header<'a>: Clone + Display {
///
/// The whole value is rewritten, which has two visible consequences: the parameters come back
/// in alphabetical order, and the mimetype is lowercased — both because the value round-trips
/// through [`mailparse::parse_content_type`]. Parameter values are always quoted.
/// through the parser. Parameter values are always quoted.
///
/// # Panics
///
@@ -422,7 +422,7 @@ fn build_header<'a, H: Header<'a>>(
///
/// # Errors
///
/// [`CowMailError::Parse`] when [`mailparse::parse_header`] rejects the line.
/// [`CowMailError::Parse`] when the line is not a header.
///
/// # Examples
///
+5 -5
View File
@@ -1620,14 +1620,14 @@ impl std::io::Read for CowMailReader<'_> {
/// Generic over the header representation; [`CowMail::try_from`] is the same thing fixed to
/// [`CowHeader`] and is the usual way in.
///
/// The MIME structure is decided by [`mailparse::parse_mail`] — boundary matching,
/// `multipart/digest` propagation, and its limit on nesting depth. What this adds is the
/// separators mailparse discards, which is what makes [`CowMail::serialize`] byte-exact.
/// The MIME structure — boundary matching, `multipart/digest` propagation, the limit on nesting
/// depth — is decided by the parser the crate uses internally. What this adds is the separators
/// that parser discards, which is what makes [`CowMail::serialize`] byte-exact.
///
/// # Errors
///
/// [`CowMailError::Parse`] when mailparse rejects the message; the other variants signal
/// a broken invariant of the bridge to mailparse and should not occur.
/// [`CowMailError::Parse`] when the message is malformed; the other variants signal a broken
/// invariant of the bridge to the parser and should not occur.
///
/// # Examples
///