Cleanup notification

This commit is contained in:
Valentin Brandl 2023-05-12 18:26:36 +02:00
parent dccd1a7407
commit 26873f6f20
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -38,12 +38,12 @@ let
enable = true; enable = true;
/* TODO: which boxes? */ /* TODO: which boxes? */
boxes = [ "Inbox" ]; boxes = [ "Inbox" ];
onNotify = "${pkgs.isync}/bin/mbsync ${configName} && ${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; onNotify = "${pkgs.isync}/bin/mbsync ${configName}";
/* onNotifyPost = { */ onNotifyPost = {
/* mail = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; */ 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/ */ update = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: update %s'";
/* /1* expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'"; *1/ */ expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'";
/* }; */ };
}; };
mbsync = { mbsync = {
enable = true; enable = true;