Browse Source

add html and pdf mail viewing

master
Yorick van Pelt 3 years ago
parent
commit
1ba55cf9e0
3 changed files with 10 additions and 1 deletions
  1. +4
    -0
      mutt/.mutt/mailcap
  2. +5
    -0
      mutt/.mutt/muttrc
  3. +1
    -1
      nix/.nixpkgs/config.nix

+ 4
- 0
mutt/.mutt/mailcap View File

@ -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
- 0
mutt/.mutt/muttrc View File

@ -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

+ 1
- 1
nix/.nixpkgs/config.nix View File

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


Loading…
Cancel
Save