diff --git a/homeConfigurations/tejing/email/default.nix b/homeConfigurations/tejing/email/default.nix index 45d8332..87db29d 100644 --- a/homeConfigurations/tejing/email/default.nix +++ b/homeConfigurations/tejing/email/default.nix @@ -17,6 +17,8 @@ let enable = true; boxes = [ "Inbox" ]; onNotify = "${pkgs.coreutils}/bin/touch -c -- ${config.accounts.email.maildirBasePath}/${name}/Inbox/new"; + # goimapnotify doesn't seem to be perfect at telling the difference between new mail and deleted mail. Just fire on both. + extraConfig.onDeletedMail = "${pkgs.coreutils}/bin/touch -c -- ${config.accounts.email.maildirBasePath}/${name}/Inbox/new"; }; mbsync = { enable = true;