chiark / gitweb /
multipart: a todo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 18:48:08 +0000 (19:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 18:48:08 +0000 (19:48 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/multipart.rs

index 08570a30829d76d959d0e7e9a8e5fc26f3e0349e..a181a1f9a47746c88d4fe1f022629e7c20296fc7 100644 (file)
@@ -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);