From d47e814b4b5417e1087282392b60b5b942e3b746 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Sat, 10 Oct 2026 23:09:24 +0200 Subject: [PATCH] drop mailparse from the public docs --- src/header/headers.rs | 2 +- src/header/mod.rs | 4 ++-- src/lib.rs | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/header/headers.rs b/src/header/headers.rs index 4d2bded..4ac4a38 100644 --- a/src/header/headers.rs +++ b/src/header/headers.rs @@ -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 /// diff --git a/src/header/mod.rs b/src/header/mod.rs index c46e90c..60a44bb 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -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 /// diff --git a/src/lib.rs b/src/lib.rs index 46e3772..dc5f0cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 ///