mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-08 19:48:57 +00:00
mailparsing: add Content-Disposition header
This commit is contained in:
@@ -150,6 +150,10 @@ impl<'a> Header<'a> {
|
||||
Parser::parse_content_transfer_encoding_header(self.get_raw_value())
|
||||
}
|
||||
|
||||
pub fn as_content_disposition(&self) -> Result<MimeParameters> {
|
||||
Parser::parse_content_transfer_encoding_header(self.get_raw_value())
|
||||
}
|
||||
|
||||
pub fn as_content_type(&self) -> Result<MimeParameters> {
|
||||
Parser::parse_content_type_header(self.get_raw_value())
|
||||
}
|
||||
|
||||
@@ -123,6 +123,12 @@ impl<'a> HeaderMap<'a> {
|
||||
as_content_transfer_encoding
|
||||
);
|
||||
accessor!(mime_version, "Mime-Version", String, as_unstructured);
|
||||
accessor!(
|
||||
content_disposition,
|
||||
"Content-Disposition",
|
||||
MimeParameters,
|
||||
as_content_disposition
|
||||
);
|
||||
|
||||
accessor!(
|
||||
content_type,
|
||||
|
||||
Reference in New Issue
Block a user