From f2553fa6dad661a49b5699f1b2af462ae23ab623 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 8 Jul 2019 23:25:28 -0400 Subject: [PATCH] [mutt] add muttrc.local concept, update mailcap, bindings Given that I am not *always* using my karleco account, I added the concept of sourcing a "muttrc.local" which is not checked in. This file can be all the account info, or just a file that sources the accounts/karleco.muttrc. Small changes to muttrc including some key bindings, mailcap for images, and adding a BCC to myself on send so it shows up in =INBOX. --- mutt/.gitignore | 3 +++ mutt/mailcap | 1 + mutt/muttrc | 11 ++++++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mutt/.gitignore b/mutt/.gitignore index c7661a0..318d1e0 100644 --- a/mutt/.gitignore +++ b/mutt/.gitignore @@ -4,3 +4,6 @@ # Don't check in those emails ;) cache + +# Local muttrc to determine which account to use, etc +muttrc.local diff --git a/mutt/mailcap b/mutt/mailcap index ce4eb4e..1a248a6 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,3 +1,4 @@ text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; +image/*; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; application/pdf; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; diff --git a/mutt/muttrc b/mutt/muttrc index 2215067..00c0e9a 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -3,12 +3,12 @@ ################################################################################ # General -source ~/.config/mutt/accounts/karleco.muttrc +source ~/.config/mutt/muttrc.local # Appearance # TODO: maybe one day a color scheme... set sort=threads -set sort_aux=reverse-date +set sort_aux=reverse-last-date-received # Attachments set mailcap_path=~/.config/mutt/mailcap @@ -23,6 +23,8 @@ set timeout=15 # mutt blocks mail check if no user input set header_cache="~/.config/mutt/cache" set message_cachedir="~/.config/mutt/cache" +# BCC self to show up in INBOX +my_hdr BCC: $from ################################################################################ # Bindings @@ -46,6 +48,9 @@ bind index N search-opposite bind index,pager \CD half-down bind index,pager \CU half-up bind index,pager d half-down -bind index,browser u half-up +bind index,pager u half-up +bind index,pager previous-new-then-unread +bind index,pager next-new-then-unread +bind index,pager R group-reply bind attach view-mailcap -- libgit2 0.28.4