summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-08-01 13:47:10 +0200
committerlassulus <lassulus@lassul.us>2017-08-01 13:47:10 +0200
commitdfcb663af9b116d07ec09603a6837230419a2785 (patch)
tree2ab048719234377ad27f901c2578ba490b2b503a /lass/2configs
parentef128bdd0fea2442bbf9775fccd3eb4ca71bfdcc (diff)
l mail: show html mails
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/mail.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix
index fe82fea59..cfc179842 100644
--- a/lass/2configs/mail.nix
+++ b/lass/2configs/mail.nix
@@ -15,6 +15,10 @@ let
${pkgs.msmtp}/bin/msmtp -C ${msmtprc} "$@"
'';
+ mailcap = pkgs.writeText "mailcap" ''
+ text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput;
+ '';
+
muttrc = pkgs.writeText "muttrc" ''
# gpg
source ${pkgs.neomutt}/share/doc/mutt/samples/gpg.rc
@@ -37,6 +41,9 @@ let
<display-message><enter-command> set crypt_verify_sig=\$my_crypt_verify_sig<enter>" \
'Verify PGP signature'
+ # read html mails
+ auto_view text/html
+ set mailcap_path = ${mailcap}
# notmuch
set nm_default_uri="notmuch://$HOME/Maildir" # path to the maildir