commit a070c88739244c025e56aef45b7c08934348b6c7 parent 265afd06605361d1727a4e99c4a0612736d84bde Author: mtmn <miro@haravara.org> Date: Sun, 26 Apr 2026 13:39:29 +0200 dotfiles: exclude spam/trash from aerc notifications Diffstat:
| M | modules/mixins/dotfiles/config/aerc/aerc.conf | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mixins/dotfiles/config/aerc/aerc.conf b/modules/mixins/dotfiles/config/aerc/aerc.conf @@ -30,4 +30,4 @@ text/html=pandoc -f html -t plain x-scheme-handler/http*=printf '%s' {} | wl-copy [hooks] -mail-received=[ "$AERC_ACCOUNT" = "fastmail" ] && notify-send -a aerc "$AERC_FROM_ADDRESS" "$AERC_SUBJECT" || true +mail-received=[ "$AERC_ACCOUNT" = "fastmail" ] && [ "$AERC_FOLDER" != "Spam" ] && [ "$AERC_FOLDER" != "Trash" ] && notify-send -a aerc "$AERC_FROM_ADDRESS" "$AERC_SUBJECT" || true