chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
multipart: a todo
[hippotat.git]
/
src
/
multipart.rs
diff --git
a/src/multipart.rs
b/src/multipart.rs
index 08570a30829d76d959d0e7e9a8e5fc26f3e0349e..a181a1f9a47746c88d4fe1f022629e7c20296fc7 100644
(file)
--- 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"
)) }
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);