Use mbsync wrapper with post-sync hook

This commit is contained in:
Valentin Brandl 2023-05-20 13:34:11 +02:00
parent 0912e29255
commit 7653bbd33d
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -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 = {