From e628871a11db2c9ee745a6d132c6aba35ac0f5a6 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Mon, 15 May 2017 16:24:52 -0400 Subject: [PATCH] Log message notifications to STDOUT --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 7e9bc84..cb89ee9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(¬ification)