From: Ian Jackson Date: Sun, 15 Aug 2021 18:48:08 +0000 (+0100) Subject: multipart: a todo X-Git-Tag: hippotat/1.0.0~170 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=sidebyside;h=1ecd29bbc88c0f24ea952c204410b045ef273390;p=hippotat.git multipart: a todo Signed-off-by: Ian Jackson --- diff --git a/src/multipart.rs b/src/multipart.rs index 08570a3..a181a1f 100644 --- a/src/multipart.rs +++ b/src/multipart.rs @@ -53,6 +53,11 @@ pub fn process_boundary<'b>(warnings: &mut Warnings, if disposition.len() >= 100 { throw!(anyhow!( "Content-Disposition value implausibly long" )) } + + // todo: replace with mailparse? + // (not in side, dep on charset not in sid) + // also seems to box for all the bits + // This let's us pretend it's a mime type, so we can use mime::Mime let disposition = format!("dummy/{}", disposition);