From 628fbc507dafd666f966185ce22fd12d5c21151c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 30 Aug 2023 11:46:23 +0200 Subject: [PATCH] fix raw mime test 1/2 --- src/part/composite.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/part/composite.rs b/src/part/composite.rs index dc2ac68..49201c1 100644 --- a/src/part/composite.rs +++ b/src/part/composite.rs @@ -229,7 +229,10 @@ It DOES end with a linebreak. subtype: mime::r#type::TextSubtype::Plain, charset: mime::r#type::Deductible::Inferred(mime::charset::EmailCharset::US_ASCII), }), - fields: mime::NaiveMIME::default(), + fields: mime::NaiveMIME { + raw: &b"\n"[..], + ..mime::NaiveMIME::default() + }, }, body: &b"This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."[..], }), @@ -250,6 +253,7 @@ It DOES end with a linebreak. } ] }), + raw: &b"Content-type: text/plain; charset=us-ascii\n\n"[..], ..mime::NaiveMIME::default() }, },