From 530dc5a3c2b39cdd42aee6f0a05d6ec8e6bccb6c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 11 Apr 2022 00:05:23 +0200 Subject: [PATCH] home: mail: don't refresh email automatically Turns out it doesn't work anyway if I have mu4e opened in emacs anyway, because it keeps a lockfile in place while it's running, so might as well just refresh the client / setup a timer in mu4e. --- home/mail.nix | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/home/mail.nix b/home/mail.nix index 7301600..4f7e097 100644 --- a/home/mail.nix +++ b/home/mail.nix @@ -89,23 +89,7 @@ in { }; programs.mbsync.enable = true; - services.mbsync = { - enable = true; - # sync every hour on the third minute, then every 16 minutes (to not hit - # servers right on plain hours) - frequency = "*:03/16"; - postExec = "${pkgs.mu}/bin/mu index"; - }; - systemd.user.services.mbsync = { - # rbw invokes the agent to know if the agent is launched already, and - # needs its path for that. - # - # https://github.com/doy/rbw/blob/acd1173848b4db1c733af7d3f53d24aab900b542/src/bin/rbw/commands.rs#L1000 - Service.Environment = "RBW_AGENT=${pkgs.rbw}/bin/rbw-agent"; - }; - programs.msmtp.enable = true; - programs.mu.enable = true; }; }