chezmoi/dot_muttrc
2025-09-22 14:43:03 +02:00

98 lines
3.5 KiB
Text

# vim: ft=muttrc fdm=marker foldcolumn=2
#
#source ~/.config/neomutt/colours
source ~/.config/neomutt/mappings
#
set from = chris@cowley.tech
set real_name = "Chris Cowley"
set sendmail="/usr/bin/msmtp"
set edit_headers = yes # allow user to edit message headers
set editor = "nvim" # define which editor to use
set fast_reply = yes # skip initial prompts when replying
set include = yes # include the message we're replying to
set askcc # ask for CC:
set fcc_attach # save attachments with the body
set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # format of quoting header
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message in forwards
set text_flowed
unset sig_dashes # no dashes before sig
unset mime_forward # forward attachments as part of body
set pipe_decode # strip headers and eval mimes when piping
set thorough_search # strip headers and eval mimes before searching
# status bar, date format, finding stuff etc.
set status_chars = " *%A"
set status_format = "[ Folder: %f ] [%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 = threads
set sort_aux = reverse-last-date-received
set uncollapse_jump
set sort_re
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" # Change `color indicator` depending
# Pager View Options
set pager_index_lines = 10 # Shows 10 lines of index when pager is active
set pager_context = 3
set pager_stop
set menu_scroll
set tilde
unset markers
### save and sync my sent messages
set record=~/Maildir/Sent
## GMAIL USERS USE Sent Mail below instead:
## set record="~/Maildir/Sent Mail"
set spoolfile=~/Maildir/INBOX
# set header cache
set header_cache=~/Localmail/hcache
# needed for maildir format
set mbox_type=Maildir
set folder=~/Maildir/
# IMAP and INBOX (this should map to any existing IMAP folders)
mailboxes =INBOX \
=Sent \
=Drafts \
=Trash
#set sidebar_visible
set sidebar_format = "%B%<F? [%F]>%* %<N?%N/>%S"
set sidebar_next_new_wrap = yes # wrap around the list when scrolling
set mail_check_stats
set virtual_spoolfile=yes
source ~/.mailboxes
set use_threads=threads sort=date sort_aux=date
# Prefer text/plain, but fall back to HTML with w3m
auto_view text/html
alternative_order text/plain text/html
#### BEGIN NOTMUCH-MUTT SETTINGS
# macro index \
# "unset wait_key~/.mutt/mutt-notmuch.pl --prompt search~/.cache/mutt_results" \
# "search mail (using notmuch)"
# macro index \
# "unset wait_key~/.mutt/mutt-notmuch.pl thread~/.cache/mutt_resultsset wait_key" \
# "search and reconstruct owning thread (using notmuch)"
#
# Mark as read (remove unread tag)
#macro index R ";-unread<enter>" "Mark read (remove unread tag)"
# Tag as important
#macro index i ";+important<enter>" "Tag important"
macro index A "<modify-labels>+archive -unread -inbox\\n" "Archive message"
macro index c "<change-vfolder>?" "Change to vfolder overview"
macro index \\\\ "<vfolder-from-query>" "Search mailbox"