From 36400cc44c9be6dae2940830351a3c99b09e64f1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 23 Mar 2022 13:02:50 +0100 Subject: [PATCH] Sync email before setting up IMAP IDLE connection --- modules/periodic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/periodic.nix b/modules/periodic.nix index bb2ddf3..1fc5f2a 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -58,6 +58,7 @@ in { ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/ugent.conf ''; serviceConfig = { + ExecStartPre = "/home/coolneng/.local/share/scripts/mail-sync ugent"; Type = "simple"; Restart = "always"; RestartSec = 20; @@ -73,6 +74,7 @@ in { ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf ''; serviceConfig = { + ExecStartPre = "/home/coolneng/.local/share/scripts/mail-sync gmail"; Type = "simple"; Restart = "always"; RestartSec = 20;