.muttrc

Fri, 30 Sep 2016 22:11:07 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 30 Sep 2016 22:11:07 -0400
changeset 403
cdab701bb9f6
parent 390
9128f0b9b653
child 408
8a55b99cb9a8
permissions
-rw-r--r--

customize status

set config_charset = "utf-8"

# IMAP
source ~/.mutt/roomag/config

macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/roomag/config<enter><change-folder>!<enter>' 'switch roomag'

source ~/.mutt/gpg2.rc
source `F=$HOME/.mutt/local; if [ ! -s "$F" ]; then F=/dev/null;fi;echo "$F"`

unset imap_passive
set imap_idle             = yes
set imap_check_subscribed = yes
set imap_keepalive        = 300
set imap_peek             = no
set mark_old              = no
set ssl_usesystemcerts    = yes

set smtp_authenticators = "gssapi:login:plain"

# Behavior
set connect_timeout = 7
set timeout         = 10
set mail_check      = 47
set beep            = no
set beep_new        = no
set move            = no
set pager_stop      = yes
set pager_context   = 2
set menu_scroll     = yes
set mailcap_path    = ~/.mutt/mailcap
set assumed_charset = "utf-8:iso8859-1"
set autoedit        = yes
set edit_headers    = yes
set editor          = "exec vim"
set strict_threads  = yes
set wait_key        = no

set send_charset    = "utf-8"
set text_flowed     = yes
set mime_forward    = yes

set reverse_name    = yes
set envelope_from   = yes
set fast_reply      = yes
set include         = yes

set header_cache     = ~/.cache/mutt
set message_cachedir = ~/.cache/mutt

auto_view text/html
alternative_order text/plain text/html

bind generic \`  help
bind generic /   search
bind generic ?   search-reverse
bind generic n   search-next
bind generic N   search-opposite
bind generic \Cu half-up
bind generic \Cd half-down

bind index,pager <F5>      sync-mailbox
bind index,pager <Tab>     previous-new-then-unread
bind index,pager <BackTab> next-new-then-unread

bind index gg   first-entry
bind index G    last-entry

# bind pager J next-unread
# bind pager K previous-unread

bind pager <up>   previous-line
bind pager <down> next-line
bind pager gg     top
bind pager G      bottom

bind pager r reply
bind pager R group-reply
bind pager l list-reply

macro index,pager    \Cb "<pipe-message> urlscan<enter>" 'urlscan'
macro attach,compose \Cb "<pipe-entry> urlscan<enter>" 'urlscan'

# Turn a text/plain markdown part into text/html
macro compose \eh "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n" 'htmlify'

push <first-entry>

# Appearance
set sort              = reverse-threads
set sort_aux          = last-date
set sort_browser      = reverse-date
set status_on_top     = yes
set pager_index_lines = 7
set wrap              = 100
set reflow_wrap       = 100
set markers           = no

set date_format   = "%m-%d %H:%M"
set index_format  = "%2C %Z %D  %-25.25F  %s"
set status_format = " %r Mutt: %f [N:%n%?d? D:%d?%?t? *:%t?] %>- (%s/%S) %P"

ignore *
unignore from date subject to cc
unignore organization organisation x-mailing-list: posted-to:

hdr_order subject from to cc date

# jellybeans-ish
color attachment color162 color233
color bold color183 color233
color hdrdefault color215 color233
color indicator brightwhite color234
color markers color215 color233
color message color188 color233
color normal color188 color233
color search brightgreen color233
color signature color222 color233
color status color30 color235
color tilde color244 color233
color tree color104 color233
# color underline brightmagenta color233
color error color167 color233

# Colours for items in the index
color index color188 color233 ~A
color index default color233 ~R
color index color110 color233 ~U
color index color213 color233 ~F
color index color217 color233 ~T
color index color126 color233 ~D

# Highlights inside message body

# URLs
color body color103 color233 "https?://[^ \"\t\r\n>]+"
color body color103 color233 "mailto:[^ \"\t\r\n>]+"

# Email addresses.
color body color103 color233 "[-a-z_0-9.%$+]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

# Nested quotes
color quoted color107 color233
# color quoted1 color58 color233
# color quoted2 color244 color233

# diffs, maybe
color body color107 color233 "^[\+]+.*"
color body color167 color233 "^[\-]+.*"

mercurial