diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2018-09-19 10:29:42 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:35 +0300 |
commit | 679bbb1a048ac5633ce7d4ec2b7217c6944bb653 (patch) | |
tree | ec8802e0c16a28a76432abf9692a2ddc96607771 /ui/src | |
parent | 1950228fdab9a712a173826c96a56877e11ad358 (diff) |
ui: edit notification format
Diffstat (limited to 'ui/src')
-rw-r--r-- | ui/src/components/mail/listing/compact.rs | 3 | ||||
-rw-r--r-- | ui/src/types/accounts.rs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/ui/src/components/mail/listing/compact.rs b/ui/src/components/mail/listing/compact.rs index e33589ee..3106c083 100644 --- a/ui/src/components/mail/listing/compact.rs +++ b/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} ({})", diff --git a/ui/src/types/accounts.rs b/ui/src/types/accounts.rs index 1a01dc61..0d231796 100644 --- a/ui/src/types/accounts.rs +++ b/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() |