neomutt: Format settings

This commit is contained in:
Marty Oehme 2025-09-08 21:56:40 +02:00
parent 79a9c4a227
commit 3abc92ac08
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 103 additions and 75 deletions

View file

@ -1,15 +1,15 @@
# Account settings # Account settings
# local maildir settings # local maildir settings
set mbox_type = Maildir set mbox_type = Maildir
set folder = ~/documents/mail # This has the shortcut '+' or '=' set folder = ~/documents/mail # This has the shortcut '+' or '= '
set spoolfile = "+Inbox" # This has the shortcut '!' set spool_file = "+Inbox" # This has the shortcut '!'
set postponed = "+Drafts" set postponed = "+Drafts"
set record = "+Sent" set record = "+Sent"
set trash = "+Trash" set trash = "+Trash"
mailboxes ! \ mailboxes -notify -poll ! \
"+Sent" \ -poll "+Archive" \
"+Drafts" \ -poll "+Jobs" \
"+Trash" \ -poll "+Receipts" \
"+Archive" \ -nonotify -nopoll "+Junk" \
"+Junk" -nonotify -nopoll "+Sent" \

View file

@ -80,6 +80,7 @@ set compose_format="-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-"
# set vfolder_format = "%N %?n?%3n& ? %8m  · %f" # set vfolder_format = "%N %?n?%3n& ? %8m  · %f"
set attach_format = "%u%D  %T %-75.20d %T  %5s %m/%M" set attach_format = "%u%D  %T %-75.20d %T  %5s %m/%M"
set sidebar_format = '%D%?Z? [%Z]?%* %?S?%S?' set sidebar_format = '%D%?Z? [%Z]?%* %?S?%S?'
set sidebar_format = '%B%<F? [%F]>%* %<Z?%Z/>%S'
index-format-hook attachment_info '=B text/calendar ~X 1' ' ' index-format-hook attachment_info '=B text/calendar ~X 1' ' '
index-format-hook attachment_info '=B text/calendar' " " index-format-hook attachment_info '=B text/calendar' " "
index-format-hook attachment_info '~X 1' " " index-format-hook attachment_info '~X 1' " "
@ -139,7 +140,6 @@ color sidebar_divider color8 black # divider between sidebar & content
color sidebar_flagged red black # mailboxes containing flagged mail color sidebar_flagged red black # mailboxes containing flagged mail
color sidebar_new green black # mailboxes containing new mail color sidebar_new green black # mailboxes containing new mail
color sidebar_unread color7 default # mailboxes containing unread mail color sidebar_unread color7 default # mailboxes containing unread mail
color sidebar_unread color7 default # mailboxes containing unread mail
# Message Headers ----------------------------------------------------------------- # Message Headers -----------------------------------------------------------------

View file

@ -3,4 +3,3 @@ source settings
source maps source maps
source account source account

View file

@ -1,91 +1,120 @@
set mail_check = 60 set mail_check = 60
set mail_check_stats set mail_check_stats
set quit # at least for rapid prototyping # at least for rapid prototyping
set sleep_time = 0 # no pause for info messages set quit
set mark_old = no # things should only be new/unread or I actually looked at them # no pause for info messages
set pager_read_delay = 3 # mark read after 3 sec set sleep_time = 0
set pipe_decode # get rid of headers when passing messages along # things should only be new/unread or I actually looked at them
set auto_tag # apply commands to all tagged messages automatically set mark_old = no
set wait_key = no # don't wait for user input after shell cmds, auto-view, piping, etc # mark read (not just seen) after
set thorough_search = no # don't pre-process mail for ~b/~B searches set pager_read_delay = 2
set flag_safe # make it impossible to delete flagged mails # get rid of headers when passing messages along
# Pager settings set pipe_decode
# filetypes and mailcap # apply commands to all tagged messages automatically
set auto_tag
# dont wait for user input after shell cmds, auto-view, piping, etc
set wait_key = no
# dont pre-process mail for ~b/~B searches
set thorough_search = no
# make it impossible to delete flagged mails
set flag_safe
################### Pager settings
# filetypes and mailcap
set mailcap_path = "~/.config/neomutt/mailcap:~/.mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap" set mailcap_path = "~/.config/neomutt/mailcap:~/.mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
# Consult mime.types for determining types of these attachments # Consult mime.types for determining types of these attachments
mime_lookup application/octet-stream mime_lookup application/octet-stream
# This requires a ~/.mailcap entry with the copiousoutput flag, such as: # This requires a ~/.mailcap entry with the copiousoutput flag, such as:
# text/html; lynx -dump -width ${COLUMNS:-80} %s; nametemplate=%s.html; copiousoutput # text/html; lynx -dump -width ${COLUMNS:-80} %s; nametemplate=%s.html; copiousoutput
# Prefer plain text to html but multipart to plain for those only sending that
auto_view application/ics auto_view application/ics
auto_view text/calendar auto_view text/calendar
auto_view text/plain auto_view text/plain
auto_view text/html auto_view text/html
alternative_order text/calendar application/ics text/plain text/enriched text/html text/* multipart/mixed multipart/related text/plain # Prefer plain text to html but multipart to plain for those only sending that
set count_alternatives = yes # look for attachments also in multipart/alternatives alternative_order text/calendar application/ics text/plain text/enriched text/html multipart/mixed multipart/related text/plain text/*
# Remember to `mkdir -p ~/.neomutt/hcache` first:
set header_cache= "~/.neomutt/hcache"
# Compose settings
set edit_headers # allow editing headers while writing mail
set sig_dashes # separate signature from mail
set fast_reply # automatically fill in from and subject for replies
set forward_format = "Fwd: %s"
set reply_to # default send back to reply-to: header instead of from: header
set reverse_name # default to reply as person e-mail was originally sent to
set include # include original msg in reply
set forward_quote # include original msg as quote in fwd
set forward_format = "FW: %s" # subject for forwarding
set mime_forward = no # forward attachments with mail
set fcc_attach # attachments saved with body
# set editor = "emacsclient -a emacs -t"
# set editor = "vim"
set mime_type_query_command = "xdg-mime query filetype"
# send settings
set sendmail = "/usr/bin/msmtp"
set sendmail_wait = 0
# Display Settings # look for attachments also in multipart/alternatives
set allow_ansi # allow escape codes for color etc set count_alternatives = yes
set sort = threads # AFAIK we do not have to manually ensure dir existence
set sort_re # thread based on regex below set header_cache= "~/.cache/neomutt/hcache/"
# recommended https://github.com/neomutt/neomutt/issues/3259#issuecomment-1043693471
set header_cache_backend = "lmdb"
set header_cache_compress_method = "lz4"
set header_cache_compress_level = 9
################### Compose settings
# allow editing headers while writing mail
set edit_headers
# separate signature from mail
set sig_dashes
# automatically fill in from and subject for replies
set fast_reply
# subject for forwarding
set forward_format = "Fwd: %s"
# default send back to reply-to: header instead of from: header
set reply_to
# default to reply as person e-mail was originally sent to
set reverse_name
# include original msg in reply
set include
# include original msg as quote in fwd
set forward_quote
# forward attachments with mail
set mime_forward = no
# attachments saved with body
set fcc_attach
# we use mimeo in this house
set mime_type_query_command = "mimeo -m"
# send settings
set sendmail = "/usr/bin/msmtp"
set sendmail_wait = 10
################## Display Settings
# allow escape codes for color etc
set allow_ansi
# thread based on the regexes below
set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set quote_regex = "^( {0,4}[>|:#%]| {0,4}[A-Za-z0-9]+[>|]+)+" set quote_regex = "^( {0,4}[>|:#%]| {0,4}[A-Za-z0-9]+[>|]+)+"
set sort_aux = last-date-received
#### Thread ordering #### Thread ordering
set use_threads=reverse set use_threads=reverse
set sort='last-date' set sort='last-date'
set sort_aux = date
set collapse_all = yes set collapse_all = yes
set uncollapse_new = no set uncollapse_new = no
set thread_received = yes set thread_received = yes
set narrow_tree=no set narrow_tree = yes
# set date_format = "%z/%m/%d %I:%M%p"
# set date_format = "%m/%d"
# set index_format = "%4C [%Z] %{%y/%b %d} %-20.20F %s"
# sidebar view options # sidebar view options
set sidebar_visible = yes set sidebar_width = 20
set sidebar_width = 24
# set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_divider_char = ' ░'
set sidebar_folder_indent = yes
set sidebar_indent_string = ' - '
set sidebar_visible = no set sidebar_visible = no
set sidebar_next_new_wrap = yes
set sidebar_short_path = yes
set sidebar_component_depth = 0 set sidebar_component_depth = 0
color sidebar_new color221 color233 set sidebar_divider_char = '│'
set sidebar_next_new_wrap = yes
set sidebar_sort = 'path'
# Shorten mailbox names
set sidebar_short_path = yes
# Delete everything up to the last / character
set sidebar_delim_chars="/"
# Indent folders whose names we've shortened
set sidebar_folder_indent = yes
# Indent with two spaces
# set sidebar_indent_string = ' - '
set sidebar_indent_string=" "
# statusbar view options # statusbar view options
set status_chars = " *%A" 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 )?───"
# pager view options # pager view options
set pager_index_lines = 10 set pager_index_lines = 10
set pager_context = 3 set pager_context = 3
set pager_stop # do not go to next msg if at bottom of pager # do not go to next msg if at bottom of pager
set pager_stop
set menu_scroll = yes set menu_scroll = yes
set tilde # show tildes for blank lines # show tildes for blank lines
unset markers # no + markers for wrapped stuff set tilde
set wrap = 90 # no + markers if a line goes off-screen
unset markers
set wrap = 100
# hide headers except for those explicitly unignored # hide headers except for those explicitly unignored
ignore * ignore *
unignore From To Cc Bcc Date Subject Message-ID unignore From To Cc Bcc Date Subject Message-ID