dotfiles/muttrc
2019-12-02 11:33:31 -08:00

119 lines
3 KiB
Text

# .muttrc
# Eryn Wells <eryn@erynwells.me>
# whoami
set realname="Eryn Wells"
# Clear out whatever crap the system sets.
unmailboxes *
unlists *
unsubscribe *
# Source my local mail settings
source ~/.dotfiles/private/mail/erynwells.me.rc
# IMAP settings
set imap_check_subscribed
set mail_check=120
set timeout=300
set imap_keepalive=300
# Caching
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file="~/.mutt/certificates"
set use_from=yes
set envelope_from=yes
# Interface
set quit=ask-yes
set move=no
set mark_old=no
set charset=UTF8
set sort=threads
set sort_aux=last-date-received
set sort_browser=alpha
set tilde
set markers=no
set wrap=80
set smart_wrap
set reflow_wrap
# Sounds
set beep_new
unset beep
ignore *
unignore Date: From: To: Cc: Subject:
hdr_order Date: From: To: Cc: Subject:
# Aliases
set reverse_alias=yes
set alias_file="~/.mutt/aliases"
# Composing and Sending
set edit_headers=yes
set include=yes
# HTML email :(
set mailcap_path="~/.mutt/mailcap"
auto_view text/html
alternative_order text/plain text/enriched text/html
unmailboxes "$record" "$postponed" "$trash"
# Basically the default, but give a little more space to addresses since we are no longer in the 80s.
set index_format="%4C %Z %{%b %d} %-20.20L (%?l?%4l&%4c?) %s"
# Vim style first and last
bind index gg first-entry
bind index G last-entry
bind index R group-reply
bind index <tab> sync-mailbox
bind index <space> collapse-thread
# First syncs everything, second syncs only INBOX.
macro index O "<shell-escape>offlineimap<enter>"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>"
macro pager \Cu "|urlview<enter>" "call urlview to open links"
# Some resources for colors:
# http://www.strcat.de/dotfiles/mutt.color
# https://github.com/altercation/mutt-colors-solarized/blob/master/mutt-colors-solarized-dark-256.muttrc
# https://www.sendmail.org/~ca/email/mutt/manual-4.html
# A sensible default
color index default default ~A
# Unread email
color index color33 default ~U
# Email to me. Not flagged or tagged. (Those have their own colors.)
color index color64 default "~p!~T!~F"
# Collapsed thread
color index color61 default ~v
# Deleted email
color index color236 default ~D
color index color236 default "~D!~F"
# Flagged email
color index brightred default ~F
# Tagged email
color index yellow default ~T
# Arrows under threaded messages in the index
color tree red default
# Tildes are visible but dark
color tilde black default
color header color136 default "^Date:"
color header color33 default "^From:"
color header color37 default "^(To|Cc):"
color header color254 default "^Subject:"
# Quoted email levels. Possible quotedN's go from 0-9.
color quoted color61 default
color quoted1 color37 default
color quoted2 color64 default
# Solarized (light theme) colors
#source ~/.mutt/mutt-colors-solarized/mutt-colors-solarized-dark-256.muttrc