Browse Source

ui: edit notification format

embed
Manos Pitsidianakis 4 years ago
parent
commit
679bbb1a04
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 3
      ui/src/components/mail/listing/compact.rs
  2. 4
      ui/src/types/accounts.rs

3
ui/src/components/mail/listing/compact.rs

@ -63,9 +63,6 @@ impl CompactListing {
/// Helper function to format entry strings for CompactListing */
/* TODO: Make this configurable */
fn make_entry_string(e: &Envelope, len: usize, idx: usize) -> String {
if e.subject().contains("https://custory.com") {
eprintln!("it's {:?}", e.subject());
}
if len > 1 {
format!(
"{} {} {:.85} ({})",

4
ui/src/types/accounts.rs

@ -118,9 +118,9 @@ impl Account {
let env: &Envelope = mailbox.insert(*envelope);
let ref_folders: Vec<Folder> = self.backend.folders();
return Some(Notification(
Some("New mail".into()),
Some("new mail".into()),
format!(
"Subject: {:15}:\n{:15}\nFrom: {:15}",
"{:.15}:\nSubject: {:.15}\nFrom: {:.15}",
ref_folders[idx].name(),
env.subject(),
env.field_from_to_string()

Loading…
Cancel
Save