Browse Source

add html and pdf mail viewing

master
Yorick van Pelt 5 years ago
parent
commit
1ba55cf9e0
  1. 4
      mutt/.mutt/mailcap
  2. 5
      mutt/.mutt/muttrc
  3. 2
      nix/.nixpkgs/config.nix

4
mutt/.mutt/mailcap

@ -0,0 +1,4 @@
text/html; w3m -I %{charset} -T text/html; copiousoutput;
application/pdf; pdftotext -layout -l 10 -nopgbrk /dev/stdin -; copiousoutput
content/pdf; pdftotext -layout -l 10 -nopgbrk /dev/stdin -; copiousoutput

5
mutt/.mutt/muttrc

@ -31,3 +31,8 @@ ifdef ENCRYPT_SELF set pgp_encrypt_self
set pgp_use_gpg_agent
bind index G imap-fetch-mail
auto_view text/html # view html automatically
alternative_order text/plain text/enriched text/html # save html for last
set mailcap_path=~/.mutt/mailcap

2
nix/.nixpkgs/config.nix

@ -195,7 +195,7 @@
sshuttle iodine stow
expect duplicity
wakelan x2x pass
abduco dvtm
abduco dvtm w3m
];
code = mkEnv "y-code" [

Loading…
Cancel
Save