From 20ee70f372f6d6b639afd0bdc0036987a5413235 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 4 Mar 2020 23:20:31 -0500 Subject: [PATCH] mutt: color unread, use mbsync, and use `sendmail` I recently set up smtpd on my laptop to send email (just a simple relay to fastmail). It has shown to be much quicker than mutt's baked in smtp and I like the idea of separating the MUA from the MTA. Other changes here are mostly cosmetic (besides mbsync over offlineimap, which is just a simple swap-out as far as mutt is concerned) --- mutt/accounts/karleco.muttrc | 11 +++++------ mutt/muttrc | 7 +++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/mutt/accounts/karleco.muttrc b/mutt/accounts/karleco.muttrc index fc455c6..9ff2386 100644 --- a/mutt/accounts/karleco.muttrc +++ b/mutt/accounts/karleco.muttrc @@ -4,14 +4,13 @@ set from="alex@karle.co" set realname="Alex Karle" -# Use the baked in IMAP (For the most part, I only check email on a network) +# Use a local copy of my mail (for speed and offline-access) set mbox_type="Maildir" -set folder="~/mail" +set folder="~/mail/karleco/" set spoolfile="=INBOX" set record="=Sent" set postponed="=Drafts" -# Never had an issue with the mutt SMTP. I'm all for the UNIX philosophy -# but since it's already there... may as well use it? -set smtp_pass=`pash show mail/karleco` -set smtp_url="smtps://$from:$smtp_pass@smtp.fastmail.com:465" +# Uncomment if sendmail not configured on machine +# set smtp_pass=`pash show mail/karleco` +# set smtp_url="smtps://$from:$smtp_pass@smtp.fastmail.com:465" diff --git a/mutt/muttrc b/mutt/muttrc index f0c8121..62d3847 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -32,11 +32,14 @@ my_hdr BCC: $from set query_command="abook --mutt-query '%s'" # Show some index in the pager -set pager_index_lines=10 +# set pager_index_lines=10 # Enables shelling out in macros without a pause set wait_key=no +# Basic colors... +color index yellow black ~U + ################################################################################ # Bindings # I've chosen to customize-as-I-go on these. Some general guiding rules: @@ -74,7 +77,7 @@ bind editor complete-query # Used for contact-completion # Macros macro index,pager ga "abook --add-email-quiet" "Add sender to abook contacts" -macro index g$ "offlineimap" "Sync with OfflineIMAP" +macro index g$ "mbsync -a" "Sync with mbsync" # set send_multipart_alternative=ask-no # set send_multipart_alternative_filter=markdown2html -- libgit2 0.28.4