Change imapnotify command and message

This commit is contained in:
Evie Litherland-Smith 2023-10-09 08:28:02 +01:00
parent 301ea337d0
commit bd878e1eaa

View file

@ -48,9 +48,9 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync --pull-new proton:INBOX";
onNotify = "${pkgs.isync}/bin/mbsync proton:INBOX";
onNotifyPost =
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
"${pkgs.libnotify}/bin/notify-send 'Proton: Inbox updated'";
extraConfig = {
wait = 300;
tls = false;
@ -89,9 +89,9 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync --pull-new icloud:INBOX";
onNotify = "${pkgs.isync}/bin/mbsync icloud:INBOX";
onNotifyPost =
"${pkgs.libnotify}/bin/notify-send 'iCloud: New mail arrived'";
"${pkgs.libnotify}/bin/notify-send 'iCloud: Inbox updated'";
extraConfig.wait = 300;
};
mbsync = {
@ -129,9 +129,9 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync --pull-new ukaea:INBOX";
onNotify = "${pkgs.isync}/bin/mbsync ukaea:INBOX";
onNotifyPost =
"${pkgs.libnotify}/bin/notify-send 'UKAEA: New mail arrived'";
"${pkgs.libnotify}/bin/notify-send 'UKAEA: Inbox updated'";
extraConfig = {
wait = 300;
tls = false;