feat: neomutt auto open html emails in w3m

This commit is contained in:
Youwen Wu 2024-12-27 21:02:32 -08:00
parent c8700244d7
commit 3a6f88043e
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
2 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -44,4 +44,10 @@
};
addKeysToAgent = "yes";
};
# text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY"
home.file.".mailcap".text = ''
text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal
text/html; ${pkgs.w3m}/bin/w3m -v -F -T text/html -dump %s; copiousoutput
'';
}