diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-05-07 01:57:44 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:47 +0300 |
commit | 35bac364b1f512757e29e5829ab2c79cb75e7448 (patch) | |
tree | c0df864f8f7c92948c291aa7741ebbeb9424a327 /ui/src/components/mail/view/envelope.rs | |
parent | 59d912e2eebfde2a9e57af6a242ee7b8952fddd2 (diff) |
ui: correctly display multipart html in Views
- Use Alt-r for entering raw mode
- Use r to exit raw mode
- added shortcuts
- add attachment footer in HtmlView::new
Diffstat (limited to 'ui/src/components/mail/view/envelope.rs')
-rw-r--r-- | ui/src/components/mail/view/envelope.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/src/components/mail/view/envelope.rs b/ui/src/components/mail/view/envelope.rs index 4e62f72b..f888b33e 100644 --- a/ui/src/components/mail/view/envelope.rs +++ b/ui/src/components/mail/view/envelope.rs @@ -315,17 +315,13 @@ impl Component for EnvelopeView { ViewMode::Attachment(aidx) if body.attachments()[aidx].is_html() => { let attachment = &body.attachments()[aidx]; self.subview = Some(Box::new(HtmlView::new( - decode(&attachment, None), + &attachment, context, self.account_pos, ))); } ViewMode::Normal if body.is_html() => { - self.subview = Some(Box::new(HtmlView::new( - decode(&body, None), - context, - self.account_pos, - ))); + self.subview = Some(Box::new(HtmlView::new(&body, context, self.account_pos))); self.mode = ViewMode::Subview; } _ => { |