many small updates
[dotfiles.git] / email / .config / mutt / muttrc
index 1cf9637..f3b77de 100644 (file)
@@ -16,7 +16,11 @@ source ~/.local/share/offlineimap/mailboxes
 set sendmail="checkattach.sh msmtp -a net"
 set send_charset="us-ascii:utf-8"
 macro index,pager $ "<shell-escape>sync_mail.sh<enter><sync-mailbox>" "Force refresh"
+
+# viewing and printing
 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
+set print_command='set -e; f=`mktemp -p "$HOME"/.cache/mutt`; \
+        muttprint -P A4 -p TO_FILE:"$f"; evince "$f"; rm "$f"'
 
 # Set the correct msmtp account for the different addresses
 send2-hook '~f mart@martlubbers.net'\
@@ -55,12 +59,13 @@ unset markers
 set sort_browser=alpha
 set sort=threads
 set sort_aux=date
-set editor=vim
+set editor="vim -c '%!proofpoint_decoder'"
 set duplicate_threads=yes
 ignore headers *
 unignore headers from to subject date cc
 set mailcap_path=~/.config/mutt/mailcap
 set mailcap_sanitize=yes
+set display_filter="proofpoint_decoder"
 
 # w3m --dump
 auto_view text/html