dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 20ee70f372f6d6b639afd0bdc0036987a5413235 (patch)
parent 819d48238934fcba0e229b106057c5239c7ed6cb
Author: Alex Karle <alex@karle.co>
Date:   Wed,  4 Mar 2020 23:20:31 -0500

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)

Diffstat:
Mmutt/accounts/karleco.muttrc | 11+++++------
Mmutt/muttrc | 7+++++--
2 files changed, 10 insertions(+), 8 deletions(-)

diff --git 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 @@ -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 <Tab> complete-query # Used for contact-completion # Macros macro index,pager ga "<pipe-message>abook --add-email-quiet<return>" "Add sender to abook contacts" -macro index g$ "<shell-escape>offlineimap<return>" "Sync with OfflineIMAP" +macro index g$ "<sync-mailbox><shell-escape>mbsync -a<return>" "Sync with mbsync" # set send_multipart_alternative=ask-no # set send_multipart_alternative_filter=markdown2html