From db55ff42d497a024adbf3add9696249d93ddcdd5 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 7 Feb 2022 00:06:51 -0500 Subject: [PATCH] mutt: Add basic muttrc for mbsync+opensmtpd usage In my current setup, I'm syncing my mail locally via mbsync and using opensmtpd(8) to send mail, so all mutt needs to do is give me a nice MUA :) There's a ways to go on recreating my old mailcap file, but the thing I use most frequently is the w3m auto_view, which is a necessity for 21st century email (unfortunately...). --- .mailcap | 2 ++ .muttrc | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .mailcap create mode 100644 .muttrc diff --git a/.mailcap b/.mailcap new file mode 100644 index 0000000..0af6877 --- /dev/null +++ b/.mailcap @@ -0,0 +1,2 @@ +# .mailcap -- tell mutt how to open MIME types +text/html; w3m -T text/html; copiousoutput diff --git a/.muttrc b/.muttrc new file mode 100644 index 0000000..145f4b1 --- /dev/null +++ b/.muttrc @@ -0,0 +1,33 @@ +# .muttrc -- mutt(1) config + +# Account setup (see also: .mbsyncrc) +set from="alex@alexkarle.com" +set realname="Alex Karle" +set mbox_type="Maildir" +set folder="~/mail" +set spoolfile="=INBOX" +set record="=Sent" +set postponed="=Drafts" + +# Cache headers for a speedier startup +set header_cache="~/.cache/mutt" + +# Bcc myself so I show up in the INBOX threads +my_hdr Bcc: $from + +# Sort by threads, then by date +set sort=threads +set sort_aux=reverse-last-date-received + +# I don't use IMAP/SMTP in mutt, but if I decide to, force TLS (can't hurt to set!) +set ssl_force_tls=yes + +# Show a bit of the index in the pager (nice to see position in thread) +set pager_index_lines=6 + +# Monochrome coloring +color index bold white black ~N + +# Convert text/html to plaintext via mailcap, but prefer plaintext if there +auto_view text/html +alternative_order text/plain text/html -- libgit2 1.1.1