reference multipart report
This commit is contained in:
parent
dc799f8677
commit
766eef71c7
2 changed files with 4 additions and 2 deletions
|
@ -102,6 +102,8 @@ Todo:
|
||||||
| 🔴 |2048 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures |
|
| 🔴 |2048 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures |
|
||||||
| 🔴 |2049 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples |
|
| 🔴 |2049 | ↳ Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples |
|
||||||
| 🔴 |2183 | Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field |
|
| 🔴 |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 |
|
| 🟩 |6532 | Internationalized Email Headers |
|
||||||
| 🔴 |9228 | Delivered-To Email Header Field |
|
| 🔴 |9228 | Delivered-To Email Header Field |
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ pub enum MultipartSubtype<'a> {
|
||||||
Mixed,
|
Mixed,
|
||||||
Digest,
|
Digest,
|
||||||
Parallel,
|
Parallel,
|
||||||
|
Report,
|
||||||
Other(&'a str),
|
Other(&'a str),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,6 +249,7 @@ impl<'a> From<&'a str> for MultipartSubtype<'a> {
|
||||||
"mixed" => MultipartSubtype::Mixed,
|
"mixed" => MultipartSubtype::Mixed,
|
||||||
"digest" => MultipartSubtype::Digest,
|
"digest" => MultipartSubtype::Digest,
|
||||||
"parallel" => MultipartSubtype::Parallel,
|
"parallel" => MultipartSubtype::Parallel,
|
||||||
|
"report" => MultipartSubtype::Report,
|
||||||
_ => MultipartSubtype::Other(csub),
|
_ => MultipartSubtype::Other(csub),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -328,8 +330,6 @@ pub fn content_type(input: &str) -> IResult<&str, Type> {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.partition(|p| matches!(p, Parameter::Boundary(_)));
|
.partition(|p| matches!(p, Parameter::Boundary(_)));
|
||||||
|
|
||||||
println!("{:?} //// {:?}", boundary_param, unknown_parameters);
|
|
||||||
|
|
||||||
// @FIXME: if multiple boundary value is set, only the
|
// @FIXME: if multiple boundary value is set, only the
|
||||||
// first one is picked. We should check that it makes
|
// first one is picked. We should check that it makes
|
||||||
// sense with other implementation.
|
// sense with other implementation.
|
||||||
|
|
Loading…
Reference in a new issue