diff --git a/home/accounts/email.nix b/home/accounts/email.nix index 038cfd01..ad565c7e 100644 --- a/home/accounts/email.nix +++ b/home/accounts/email.nix @@ -47,7 +47,7 @@ imapnotify = { enable = lib.mkDefault accountEnabled; boxes = [ "INBOX" ]; - onNotify = "${pkgs.isync}/bin/mbsync --pull proton:INBOX"; + onNotify = "${pkgs.isync}/bin/mbsync --pull-new proton:INBOX"; onNotifyPost = "${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'"; extraConfig = { @@ -88,7 +88,7 @@ imapnotify = { enable = lib.mkDefault accountEnabled; boxes = [ "INBOX" ]; - onNotify = "${pkgs.isync}/bin/mbsync --pull icloud:INBOX"; + onNotify = "${pkgs.isync}/bin/mbsync --pull-new icloud:INBOX"; onNotifyPost = "${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'"; extraConfig.wait = 300; @@ -128,7 +128,7 @@ imapnotify = { enable = lib.mkDefault accountEnabled; boxes = [ "INBOX" ]; - onNotify = "${pkgs.isync}/bin/mbsync --pull ukaea:INBOX"; + onNotify = "${pkgs.isync}/bin/mbsync --pull-new ukaea:INBOX"; onNotifyPost = "${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'"; extraConfig = { @@ -210,8 +210,8 @@ davmail = lib.mkIf emailAccounts.ukaea.mbsync.enable { Unit = { Description = "Davmail server"; - Wants = [ "network-online.target" "graphical-session.target" ]; - After = [ "network-online.target" "graphical-session.target" ]; + Wants = [ "network-online.target" "hyprland-session.target" ]; + After = [ "network-online.target" "hyprland-session.target" ]; }; Service = { Environment = [ "PATH=/run/current-system/sw/bin/:$PATH" ];