neomutt: fix mailcaprc

This commit is contained in:
Motiejus Jakštys 2024-04-30 08:04:13 +03:00
parent 49fe0046c1
commit e13bb2cdef
2 changed files with 5 additions and 7 deletions

View File

@ -307,10 +307,11 @@ in {
set index_format="%4C %Z %{%F %H:%M} %-15.15L (%?l?%4l&%4c?) %s"
set mailcap_path = ${
pkgs.substituteAll {
src = ./mailcap;
inherit (pkgs) elinks;
}
pkgs.writeText "mailcaprc" ''
text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput;
application/*; ${pkgs.xdg-utils}/bin/xdg-open %s &> /dev/null &;
image/*; ${pkgs.xdg-utils}/bin/xdg-open %s &> /dev/null &;
''
}
auto_view text/html
unset record

View File

@ -1,3 +0,0 @@
text/html; @elinks@/bin/elinks -dump ; copiousoutput;
application/*; xdg-open %s &> /dev/null &;
image/*; xdg-open %s &> /dev/null &;