summaryrefslogtreecommitdiffstats
path: root/melib
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-27 22:21:35 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-27 22:21:35 +0300
commit250129665b0a74d0946cbfd39d3dcc36e62a67d4 (patch)
treeaf4ac292b3f801957bfa43ba6b1c07fd0b5974e1 /melib
parent19ec6e54fcffdb896a95222bbd7132f2e505a073 (diff)
Pass attachment names through decoding
Attachment names in Content-Type parameters can be encoded (eg =?UTF-8...), so try decoding with phrase() first
Diffstat (limited to 'melib')
-rw-r--r--melib/src/email/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs
index 80828530..7ebfbd3b 100644
--- a/melib/src/email/parser.rs
+++ b/melib/src/email/parser.rs
@@ -787,6 +787,7 @@ named_args!(pub parts<'a>(boundary: &'a [u8]) < Vec<&'this_is_probably_unique_i_
( { Vec::<&[u8]>::new() } ))
));
+/* Caution: values should be passed through phrase() */
named!(
content_type_parameter<(&[u8], &[u8])>,
do_parse!(
@@ -1190,5 +1191,4 @@ mod tests {
}
}
}
-
}