ui: edit notification format

embed
Manos Pitsidianakis 2018-09-19 10:29:42 +03:00
parent 1950228fda
commit 679bbb1a04
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 2 additions and 5 deletions

View File

@ -63,9 +63,6 @@ impl CompactListing {
/// Helper function to format entry strings for CompactListing */ /// Helper function to format entry strings for CompactListing */
/* TODO: Make this configurable */ /* TODO: Make this configurable */
fn make_entry_string(e: &Envelope, len: usize, idx: usize) -> String { 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 { if len > 1 {
format!( format!(
"{} {} {:.85} ({})", "{} {} {:.85} ({})",

View File

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