From bb96c1224b3d6c114d0b5121ba2a8feb216e9fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Thu, 3 Mar 2022 20:41:57 +0100 Subject: [PATCH] add molokai theme --- config/programs/mail.nix | 74 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/config/programs/mail.nix b/config/programs/mail.nix index da94c97e..5e5763a9 100644 --- a/config/programs/mail.nix +++ b/config/programs/mail.nix @@ -4,6 +4,79 @@ let text/html; ${pkgs.w3m}/bin/w3m -I %{charset} -T text/html; copiousoutput; image/*; ${pkgs.imv}/bin/imv %s ''; + molokai = pkgs.writeText "molokai.muttrc" '' + # color setup + # + # ====================================================================== + # INDEX OBJECT PATTERN? pattern description + # index pattern default highlighting of the entire index line + # index_date the date field + # index_flags pattern %S %Z the message flags + # index_number %C the message number + # index_collapsed %M the number of messages in a collapsed thread + # index_author pattern %AaFLn the author name + # index_subject pattern %s the subject line + # index_size %c %l the message size + # index_label %y %Y the message label + # index_tags %g the transformed message tags + # index_tag pattern/tag %G an individual message tag + # ====================================================================== + + color normal default default + color index_number brightblack default + color index_date magenta default + color index_flags yellow default . + color index_collapsed cyan default + color index green default ~N + color index green default ~v~(~N) + color index red default ~F + color index cyan default ~T + color index blue default ~D + color index_label brightred default + color index_tags red default + color index_tag brightmagenta default "encrypted" + color index_tag brightgreen default "signed" + color index_tag yellow default "attachment" + color body brightwhite default ([a-zA-Z\+]+)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ # urls + color body green default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # mail addresses + color attachment yellow default + color signature green default + color search brightred black + + color indicator cyan brightblack + color error brightred default + color status brightcyan brightblack + color tree brightcyan default + color tilde cyan default + color progress white red + + color sidebar_indicator brightred default + color sidebar_highlight cyan brightblack + color sidebar_divider red default + color sidebar_flagged red default + color sidebar_new green default + + color hdrdefault color81 default + color header green default "^Subject: .*" + color header yellow default "^Date: .*" + color header red default "^Tags: .*" + + color quoted color60 default + color quoted1 yellow default + + color body brightgreen default "Good signature from.*" + color body green default "Fingerprint:( [A-Z0-9]{4}){5} ( [A-Z0-9]{4}){5}" + color body brightred default "Bad signature from.*" + color body brightred default "Note: This key has expired!" + color body brightmagenta default "Problem signature from.*" + color body brightmagenta default "WARNING: .*" + + color compose header color81 default + color compose security_both brightgreen default + color compose security_sign brightmagenta default + color compose security_encrypt brightyellow default + color compose security_none brightred default + ''; in { services.imapnotify.enable = true; @@ -52,6 +125,7 @@ in macro index,pager A "+archive -unread -inbox\n" bind index,pager y modify-labels set mailcap_path = ${mailcap} + source ${molokai} ''; }; programs.msmtp.enable = true;