diff --git a/src/ui/mail_tab.rs b/src/ui/mail_tab.rs index 4be8ee2..4bf6687 100644 --- a/src/ui/mail_tab.rs +++ b/src/ui/mail_tab.rs @@ -84,8 +84,8 @@ impl MailTabState { .widths(&[ Constraint::Length(1), Constraint::Max(3), - Constraint::Min(25), Constraint::Min(20), + Constraint::Min(35), Constraint::Max(5000), ]) .header( diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 123680b..dd0e779 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -116,9 +116,12 @@ pub async fn run_ui( AttributeValue::Envelope(Envelope { subject: new_subject, from: new_from, .. }) => { - // if let Some(new_from) = new_from { - // from = new_from; - // } + if let Some(new_from) = new_from { + from = new_from.iter() + .filter_map(|addr| addr.name.to_owned()) + .collect::>() + .join(", "); + } if let Some(new_subject) = new_subject { subject = new_subject; }