From 7653bbd33d20cf54d9e32caf7f71f1ec499b5180 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 20 May 2023 13:34:11 +0200 Subject: [PATCH] Use mbsync wrapper with post-sync hook --- home/mail/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/mail/default.nix b/home/mail/default.nix index 7bed4bc..59cd354 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -22,7 +22,7 @@ let realName = displayName; imap.host = host; smtp.host = host; - passwordCommand = "${pkgs.libsecret}/bin/secret-tool lookup email ${address}"; + passwordCommand = "${pkgs.libsecret}/bin/secret-tool lookup email ${address}"; signature = { text = displayName; showSignature = "append"; @@ -38,7 +38,7 @@ let enable = true; /* TODO: which boxes? */ boxes = [ "Inbox" ]; - onNotify = "${pkgs.isync}/bin/mbsync ${configName}"; + onNotify = "mbsync ${configName}"; onNotifyPost = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; }; mbsync = {