From 1354d932f8643d5650a973643220c8d37d201f86 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 7 Jun 2023 16:52:55 +0300 Subject: [PATCH] user/aerc: add more filters --- home/modules/mail/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home/modules/mail/default.nix b/home/modules/mail/default.nix index 0d42beb..13cd306 100644 --- a/home/modules/mail/default.nix +++ b/home/modules/mail/default.nix @@ -46,9 +46,14 @@ in display-mode = "icon"; }; + # https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd filters = { - "text/plain" = "${./colorize}"; - "text/html" = "html"; + ".headers" = "colorize"; + "text/html" = "html | colorize"; + "text/plain" = "colorize"; + "text/rfc822-headers" = "colorize"; + # "text/*" = "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME'"; + "message/delivery-status" = "cat | colorize"; }; }; extraBinds = {