From 766eef71c76ad631568e79241ce9817d76a2ea7f Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 4 Jul 2023 15:32:08 +0200 Subject: [PATCH] reference multipart report --- README.md | 2 ++ src/fragments/mime.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2014089..10e8ff3 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,8 @@ Todo: | 🔴 |2048 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures | | 🔴 |2049 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples | | 🔴 |2183 | Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field | +| 🔴 |3462 | The Multipart/Report Content Type for the Reporting of Mail System Administrative Messages | +| 🔴 |3798 | Message Disposition Notification | | 🟩 |6532 | Internationalized Email Headers | | 🔴 |9228 | Delivered-To Email Header Field | diff --git a/src/fragments/mime.rs b/src/fragments/mime.rs index cedf260..b454b75 100644 --- a/src/fragments/mime.rs +++ b/src/fragments/mime.rs @@ -51,6 +51,7 @@ pub enum MultipartSubtype<'a> { Mixed, Digest, Parallel, + Report, Other(&'a str), } @@ -248,6 +249,7 @@ impl<'a> From<&'a str> for MultipartSubtype<'a> { "mixed" => MultipartSubtype::Mixed, "digest" => MultipartSubtype::Digest, "parallel" => MultipartSubtype::Parallel, + "report" => MultipartSubtype::Report, _ => MultipartSubtype::Other(csub), } } @@ -328,8 +330,6 @@ pub fn content_type(input: &str) -> IResult<&str, Type> { .into_iter() .partition(|p| matches!(p, Parameter::Boundary(_))); - println!("{:?} //// {:?}", boundary_param, unknown_parameters); - // @FIXME: if multiple boundary value is set, only the // first one is picked. We should check that it makes // sense with other implementation.