From 7cea8e1cfc2204d537c6acb80ea5249b1857fca9 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 13 Apr 2024 00:56:45 +0000 Subject: add mutt configuration --- mutt/mailcap | 1 + mutt/muttrc | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 mutt/mailcap create mode 100644 mutt/muttrc diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..c9f551b --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1 @@ +text/html; w3m -I %{charset} -T text/html; copiousoutput diff --git a/mutt/muttrc b/mutt/muttrc new file mode 100644 index 0000000..a959277 --- /dev/null +++ b/mutt/muttrc @@ -0,0 +1,71 @@ +set mbox_type = Maildir +set folder = "~/Documents/Mail/" +set spoolfile = "+Inbox" +set postponed = "+Drafts" +set record = "+Sent" +unset move + +set signature = ~/.config/mutt/signature + +alternates .*@gaiwan.org + +set wait_key = no +# set delete +# unset confirmappend +# set quit +unset mark_old + +set status_on_top = yes +set status_format = "%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? %>-%?p?( %p postponed ) " +set help = no + +ignore * +unignore from: to: cc: date: subject: +unhdr_order * +hdr_order from: to: cc: date: subject: + +set markers = no +unset user_agent +set sort = threads +set sort_aux = reverse-last-date-received +set date_format = "%m/%d" +set index_format="[%Z] %D %-16.16F %s" + +# Mailcap +alternative_order text/plain text text/html +set mailcap_path = ~/.config/mutt/mailcap +auto_view text/html + +# macro pager \Cu "|urlscan -cd" "call urlscan to open links + +macro index,pager,attach,compose \Cb "\ + set my_pipe_decode=\$pipe_decode pipe_decode\ + urlview\ + set pipe_decode=\$my_pipe_decode; unset my_pipe_decode" \ +"call urlview to extract URLs out of a message" + +# Colours +color normal default default +color attachment bold default default +color hdrdefault cyan default +color indicator default red +color quoted default yellow +color signature cyan default +color status reverse default default +color tilde blue default +color tree default default + +color index red default ~P +color index red default ~D +color index default yellow ~T + +color header brightdefault default ^From: +color header brightdefault default ^To: +color header brightdefault default ^Date: +color header brightdefault default ^Cc: +color header brightdefault default ^Subject: + +# emails and urls +color body brightdefault default [\-\.+_a-zA-Z0-9]+@[\-\ea-zA-Z0-9]+ +color body brightdefault default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ + -- cgit 1.4.1-2-gfad0