.muttrc (3929B)
- set mbox_type=Maildir
- # Don't wait for user to press a key after an ext-command
- set wait_key=no
- # Serious-fucking-ly…
- set sleep_time=0
- set edit_headers=yes
- # this should be the default, soft-newline via using a trailing space
- set text_flowed=yes
- # Uses tmux to launch editor in another pane
- set background_edit=yes
- set editor = 'mutt-bgedit-tmux vis'
- set suspend=no
- set use_8bitmime=yes
- # should also be set as default, allows to forward an email as a MIME attachment
- set mime_forward=ask-yes
- alternates `sed -e 's;^;^;' -e 's;$;$;' /etc/mail/domains-regex`
- # Better fallback than user@FQDN
- set from=contact@hacktivis.me
- set reverse_name
- # ~/.local/bin/list-mailboxes.sh
- mailboxes `list-mailboxes.sh`
- ## caching
- set header_cache = ~/.cache/mutt/headers/
- # Assume that mutt is the only client
- set maildir_header_cache_verify = no
- # Put sent email in the same-folder, actually useless given that most mailing-list software sends you a copy back
- #folder-hook . set record=^
- ## Address-based mailing-list status detection
- lists '.*@lists?\.*'
- subscribe '.*@lists.gentoo.org$' '.*@lists.sr.ht$'
- ## Sidebar
- set sidebar_visible
- set sidebar_on_right
- set sidebar_format="%B %> (%N/%S)"
- set sidebar_short_path=yes
- set sidebar_folder_indent=yes
- macro index G '<enter-command>toggle sidebar_visible<enter><refresh>'
- macro pager G '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
- bind index,pager \Ck sidebar-prev
- bind index,pager \Cj sidebar-next
- bind index,pager \Cl sidebar-open
- ## Visual
- alternative_order text/plain text/html
- auto_view 'text/html' 'application/tlsrpt+gzip'
- ignore *
- unignore 'Date' 'Subject' 'From' 'To' 'Cc' 'Reply-To' 'List-ID' 'Message-ID' 'In-Reply-To' 'References' 'X-Spamd-Bar' 'X-Spam-Score'
- hdr_order 'Date' 'Subject' 'From' 'To' 'Cc' 'Reply-To' 'List-ID' 'Message-ID' 'In-Reply-To' 'References' 'X-Spamd-Bar' 'X-Spam-Score'
- set pager_index_lines=10
- set markers=no
- set index_format = "%4C | %Z [%D] %-20.20O : %-30.30F (%-4.4c) %s"
- set date_format = "%F %T%z"
- set attribution = '[%d] %n:\n'
- set sort = 'threads'
- set sort_aux = 'last-date-received'
- # no continous scrolling
- set pager_stop = yes
- ## Keybindings
- bind pager j next-line
- bind pager k previous-line
- # Is C++ the worst language? Yes.
- # terminate called after throwing an instance of 'std::runtime_error'
- # what(): locale::facet::_S_create_c_locale name not valid
- # Aborted (core dumped)
- macro index a '<pipe-message>LC_ALL=C rspamc learn_ham<enter><save-message>=.Archive<enter>y'
- macro index,pager S '<pipe-message>LC_ALL=C rspamc learn_spam<enter><save-message>=.spam<enter>y'
- macro index,pager P '<pipe-message>LC_ALL=C rspamc learn_spam<enter><save-message>=.phishing<enter>y'
- ## Theme
- color index cyan black ~O
- color index brightcyan black ~N
- color index brightyellow black ~F
- color index black green ~T
- color index brightred black ~D
- mono index bold ~O
- mono index bold ~N
- mono index bold ~F
- mono index bold ~T
- mono index bold ~D
- color header yellow black "^from:"
- color header yellow black "^to:"
- color header yellow black "^subject:"
- color header yellow black "^date:"
- mono header bold "^from:"
- mono header bold "^to:"
- mono header bold "^subject:"
- mono header bold "^date:"
- color quoted cyan black
- color quoted1 yellow black
- color quoted2 red black
- color quoted3 green black
- color quoted4 cyan black
- color quoted5 yellow black
- color quoted6 red black
- color quoted7 green black
- color error red black
- color body red black "@?lanodan"
- # Patch file highlighting
- # Based on https://www.redhat.com/archives/libvir-list/2012-July/msg01100.html
- color body green black "^diff \-.*"
- color body green black "^index [a-f0-9].*"
- color body green black "^[\-]{3} .*"
- color body green black "^[\+]{3} .*"
- color body cyan black "^[\+][^\+]+.*"
- color body red black "^\-[^\-]+.*"
- color body white black "^\ [^\ ]+.*"
- color body brightblue black "^@@ .*"
- mono bold bold
- mono underline underline
- mono indicator reverse