X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=src%2Fmultipart.rs;h=a181a1f9a47746c88d4fe1f022629e7c20296fc7;hb=1ecd29bbc88c0f24ea952c204410b045ef273390;hp=08570a30829d76d959d0e7e9a8e5fc26f3e0349e;hpb=1c6d97565a77133ed865ff12a521ebb6e5b90caa;p=hippotat.git 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);