diff --git a/home/mail/default.nix b/home/mail/default.nix index bc7f746..43d18bc 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -38,12 +38,12 @@ let enable = true; /* TODO: which boxes? */ boxes = [ "Inbox" ]; - onNotify = "${pkgs.isync}/bin/mbsync ${configName} && ${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; - /* onNotifyPost = { */ - /* mail = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; */ - /* /1* update = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: update %s'"; *1/ */ - /* /1* expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'"; *1/ */ - /* }; */ + onNotify = "${pkgs.isync}/bin/mbsync ${configName}"; + onNotifyPost = { + mail = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; + update = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: update %s'"; + expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'"; + }; }; mbsync = { enable = true;