Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if disposition.len() >= 100 { throw!(anyhow!(
"Content-Disposition value implausibly long"
)) }
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);
// This let's us pretend it's a mime type, so we can use mime::Mime
let disposition = format!("dummy/{}", disposition);