From 0b328b9c6971a415ccb70e9c86424d28ec3ce840 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sun, 10 Jul 2022 20:21:32 +0200 Subject: [PATCH] Fix calculation of unseen mails --- modules/graphical/mail/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/graphical/mail/default.nix b/modules/graphical/mail/default.nix index d03a9e1b..20639225 100644 --- a/modules/graphical/mail/default.nix +++ b/modules/graphical/mail/default.nix @@ -3,7 +3,7 @@ let passwordScript = pkgs.writeShellScript "get_mail_password" ''${pkgs.pass}/bin/pass show "$@" | ${pkgs.coreutils}/bin/head -n1 | ${pkgs.coreutils}/bin/tr -d "\n"''; notifyScript = name: pkgs.writeShellScript "notify_${name}_mail" '' - unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l) + unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | ${pkgs.coreutils}/bin/wc -l) if [ "$unseen_count" = "1" ] then