From 1ba55cf9e0ccd7a6c5de8769b0b940ab21ff786f Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 23 Jun 2017 19:25:36 +0200 Subject: [PATCH] add html and pdf mail viewing --- mutt/.mutt/mailcap | 4 ++++ mutt/.mutt/muttrc | 5 +++++ nix/.nixpkgs/config.nix | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 mutt/.mutt/mailcap diff --git a/mutt/.mutt/mailcap b/mutt/.mutt/mailcap new file mode 100644 index 0000000..9c6df8b --- /dev/null +++ b/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 + diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index ddbf1d2..8bfbe04 100644 --- a/mutt/.mutt/muttrc +++ b/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 diff --git a/nix/.nixpkgs/config.nix b/nix/.nixpkgs/config.nix index 010dbda..acab1c5 100644 --- a/nix/.nixpkgs/config.nix +++ b/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" [