Log message notifications to STDOUT
This commit is contained in:
parent
ce57248de2
commit
e628871a11
|
@ -257,6 +257,8 @@ fn main() {
|
||||||
use notify_rust::{Notification, NotificationHint};
|
use notify_rust::{Notification, NotificationHint};
|
||||||
let title = format!("@{} has new mail ({} unseen)", account, num_unseen);
|
let title = format!("@{} has new mail ({} unseen)", account, num_unseen);
|
||||||
let notification = format!("> {}", subjects.join("\n> "));
|
let notification = format!("> {}", subjects.join("\n> "));
|
||||||
|
println!("! {}", title);
|
||||||
|
println!("{}", notification);
|
||||||
Notification::new()
|
Notification::new()
|
||||||
.summary(&title)
|
.summary(&title)
|
||||||
.body(¬ification)
|
.body(¬ification)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user