diff --git a/melib/src/mailbox/email/attachments.rs b/melib/src/mailbox/email/attachments.rs index 9fa39feec..7d26eece6 100644 --- a/melib/src/mailbox/email/attachments.rs +++ b/melib/src/mailbox/email/attachments.rs @@ -356,13 +356,11 @@ impl Attachment { } } - pub fn interpret_format_flowed(_t: &str) -> String { //let mut n = String::with_capacity(t.len()); unimplemented!() } - fn decode_rfc822(_raw: &[u8]) -> Attachment { let builder = AttachmentBuilder::new(b""); builder.build() @@ -384,7 +382,6 @@ fn decode_rfc822(_raw: &[u8]) -> Attachment { type Filter = Box) -> ()>; - fn decode_rec_helper(a: &Attachment, filter: &Option) -> Vec { let mut ret = match a.content_type { ContentType::Unsupported { .. } => Vec::new(), @@ -418,12 +415,10 @@ fn decode_rec_helper(a: &Attachment, filter: &Option) -> Vec { ret } - pub fn decode_rec(a: &Attachment, filter: Option) -> Vec { decode_rec_helper(a, &filter) } - fn decode_helper(a: &Attachment, filter: &Option) -> Vec { let charset = match a.content_type { ContentType::Text { charset: c, .. } => c, @@ -459,7 +454,6 @@ fn decode_helper(a: &Attachment, filter: &Option) -> Vec { ret } - pub fn decode(a: &Attachment, filter: Option) -> Vec { decode_helper(a, &filter) }