Log message notifications to STDOUT

This commit is contained in:
Jon Gjengset 2017-05-15 16:24:52 -04:00
parent ce57248de2
commit e628871a11
No known key found for this signature in database
GPG Key ID: D64AC9D67176DC71
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ fn main() {
use notify_rust::{Notification, NotificationHint};
let title = format!("@{} has new mail ({} unseen)", account, num_unseen);
let notification = format!("> {}", subjects.join("\n> "));
println!("! {}", title);
println!("{}", notification);
Notification::new()
.summary(&title)
.body(&notification)