From: Samir Benmendil Date: Sun, 30 Mar 2014 22:44:00 +0000 (+0100) Subject: mutt: add some more settings X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/8a5f4add378f794a5e1bdfd7b552d53aa3d1efa9?ds=sidebyside mutt: add some more settings --- diff --git a/mutt/accounts/chakra b/mutt/accounts/chakra index f2d9607..e7b5719 100644 --- a/mutt/accounts/chakra +++ b/mutt/accounts/chakra @@ -1,4 +1,5 @@ # vim: ft=muttrc set realname = "Ram-Z" set from = "ram-z@chakra-project.org" +unmy_hdr Bcc: my_hdr Bcc: $from diff --git a/mutt/accounts/gmail b/mutt/accounts/gmail index f5e0422..2d059e7 100644 --- a/mutt/accounts/gmail +++ b/mutt/accounts/gmail @@ -1,4 +1,5 @@ # vim: ft=muttrc set realname = "Samir Benmendil" set from = "samir.benmendil@gmail.com" +unmy_hdr Bcc: my_hdr Bcc: $from diff --git a/mutt/accounts/unimaas b/mutt/accounts/unimaas index 0c624db..bf6ee9c 100644 --- a/mutt/accounts/unimaas +++ b/mutt/accounts/unimaas @@ -1,4 +1,5 @@ # vim: ft=muttrc set realname = "Samir Benmendil" set from = "s.benmendil@student.maastrichtuniversity.nl" +unmy_hdr Bcc: my_hdr Bcc: $from diff --git a/mutt/bindings b/mutt/bindings index d441abc..433b6bf 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -27,7 +27,7 @@ bind index,pager \CO sidebar-open macro index b "toggle sidebar_visible" "Toggle sidebar" macro pager b "toggle sidebar_visible" "Toggle sidebar" -macro pager \Cu "|urlview" " +macro pager \Cu "|urlview" "open urlview" # Remap bounce-message function to “B” bind index,pager B bounce-message diff --git a/mutt/hooks b/mutt/hooks index fa323c2..43f61c1 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -1,6 +1,15 @@ # vim: ft=muttrc +reply-hook . source ~/.mutt/accounts/gmail +reply-hook "%L chakra" source ~/.mutt/accounts/chakra +reply-hook "%L unimaas" source ~/.mutt/accounts/unimaas + folder-hook . source ~/.mutt/accounts/gmail folder-hook chakra source ~/.mutt/accounts/chakra folder-hook unimaas source ~/.mutt/accounts/unimaas folder-hook * "exec collapse-all" + +# limit inbox to Unread and Flagged mails +folder-hook inbox push '=(=U|=F)' +# delete mails older than 3 months +folder-hook inbox push '!~(~U|~F|~d<3m)' diff --git a/mutt/mailcap b/mutt/mailcap index 3fc2db1..664bda6 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -2,3 +2,4 @@ text/html; ~/.mutt/mutt_bgrun dwb -p mail --name dwb-mail %s; test=test -n text/html; w3m -I %{charset} -T text/html; copiousoutput; image/*; ~/.mutt/mutt_bgrun feh %s; application/pdf; ~/.mutt/mutt_bgrun okular %s; +application/*; ~/.mutt/mutt_bgrun mimeo %s; diff --git a/mutt/muttrc b/mutt/muttrc index d41b885..7e0bbba 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -1,5 +1,8 @@ # general settings -alternates samir.benmendil@.* ram-z@.* s.benmendil@.* +alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com +alternates -group me -group chakra ram-z@chakra-project.org +alternates -group me -group unimaas s.benmendil@student.maastrichtuniversity.nl + set mail_check = 0 set envelope_from set forward_format = "Fwd: %s" @@ -22,9 +25,14 @@ set duplicate_threads = yes set collapse_unread = no # lists -subscribe ^chakra-.*@googlegroups.com +subscribe -group chakra ^chakra-.*@googlegroups.com subscribe clementine-player@googlegroups.com +# performance tuning +set read_inc = 1000 # nb of messages read before printing status +set write_inc = 1000 # nb of messages written before printing status +set time_inc = 100 # time interval (ms) between status print + # look and feel set pager_index_lines = 12 set pager_context = 5