92 lines
2.7 KiB
Text
92 lines
2.7 KiB
Text
# NeoMutt main configuration
|
|
|
|
# Cache
|
|
set header_cache = "~/.cache/neomutt/headers/"
|
|
set message_cachedir = "~/.cache/neomutt/messages/"
|
|
|
|
# Shell
|
|
set shell = "/bin/bash -l"
|
|
|
|
# Editor
|
|
set editor = "nvim"
|
|
set edit_headers = yes
|
|
|
|
# General settings
|
|
set color_directcolor = yes
|
|
set implicit_autoview = yes
|
|
set crypt_use_gpgme = yes
|
|
set wait_key = no
|
|
unset mark_old
|
|
alternative_order text/enriched text/plain text
|
|
set delete = yes
|
|
set abort_key = "<Esc>"
|
|
|
|
# Sidebar
|
|
set sidebar_visible
|
|
set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%S"
|
|
set mail_check_stats
|
|
|
|
# Status bar, date format
|
|
set status_chars = " *%A"
|
|
set status_format = "[ Folder: %D ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%>─%?p?( %p postponed )?"
|
|
set date_format = "%d.%m.%Y %H:%M"
|
|
|
|
# set sort = date
|
|
# set sort_aux = date
|
|
set use_threads = reverse
|
|
set sort = last-date-received
|
|
set sort_browser = reverse-date
|
|
set uncollapse_jump
|
|
set sort_re
|
|
|
|
set index_format = "%4C %Z %{%b %d} %-15.15L %?E?(%E)&? %s"
|
|
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
|
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
|
set send_charset = "utf-8:iso-8859-1:us-ascii"
|
|
set charset = "utf-8"
|
|
set arrow_cursor = "no"
|
|
|
|
# Signature
|
|
set sig_dashes = no # Don't add "-- " before signature (already in file)
|
|
set sig_on_top = yes # Put signature above quoted text
|
|
|
|
# Pager View Options
|
|
set pager_index_lines = 10
|
|
set pager_context = 3
|
|
set pager_stop
|
|
set menu_scroll
|
|
set tilde
|
|
unset markers
|
|
|
|
# MTA (mail transfer agent)
|
|
set sendmail = 'msmtpq --read-envelope-from --read-recipients'
|
|
|
|
# Include keybindings
|
|
source ~/.config/neomutt/keybinds
|
|
source ~/.config/neomutt/colors
|
|
|
|
# Account switching macros (g + u/p for uchicago/personal)
|
|
macro index,pager gu "<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/uchicago<enter><change-folder>!<enter>" "Switch to uchicago"
|
|
macro index,pager gp "<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/personal<enter><change-folder>!<enter>" "Switch to personal"
|
|
|
|
# Register accounts for folder hooks
|
|
named-mailboxes "p" "~/mail/personal/Inbox"
|
|
folder-hook ~/mail/personal/ "source ~/.config/neomutt/accounts/personal"
|
|
|
|
named-mailboxes "u" "~/mail/uchicago/Inbox"
|
|
folder-hook ~/mail/uchicago/ "source ~/.config/neomutt/accounts/uchicago"
|
|
|
|
# Jump to last (newest) message when opening folders
|
|
folder-hook . "push <last-entry>"
|
|
|
|
# Notmuch virtual mailboxes (search across all mail)
|
|
set nm_config_file = `echo "$HOME/.config/notmuch/config"`
|
|
set nm_default_url = `echo "notmuch://$HOME/mail"`
|
|
set nm_query_type = messages
|
|
set nm_record_tags = "-inbox,sent"
|
|
|
|
# Source primary account (uchicago)
|
|
source ~/.config/neomutt/accounts/uchicago
|
|
|
|
# # Source primary account (personal)
|
|
# source ~/.config/neomutt/accounts/personal
|